Map Database  •  FAQ  •  RSS  •  Login

New Dynamic Script Ideas

<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 08 May 2014, 09:56

Re: New Dynamic Script Ideas

Actions.AddSolidPlan(aPlayer, aType, X, Y) will be great.
This could be madness :D
<<

Michalpl

Sword Fighter

Posts: 318

Joined: 10 May 2014, 21:46

KaM Skill Level: Fair

Post 12 May 2014, 17:03

Re: New Dynamic Script Ideas

New idea for Dynamic scripts it should be called action.replacetitle usage should look like this 1 2 cords and 3 numer of the tile in the tileset 4 should be something like increase and decrease the tiles hight 5 tile rotation 6 random tile rotation if on it should force 5 to have random rotations if off it shouldn't affect 5.
By that script we could make water bridges, infinite; Coal,Iron,Gold,Stone make something like rain? that increase water but there should be something to keep that titles clean i mean no buildings, make dynamic volcano that looks cool, dynamic maze, mazes, something like even breakable wooden bridges or even ice
and lot more...
<<

Skypper

Knight

Posts: 436

Joined: 28 Jun 2013, 09:37

KaM Skill Level: Fair

Location: Dutch :D

Post 12 May 2014, 17:55

Re: New Dynamic Script Ideas

By that script we could make water bridges, infinite; Coal,Iron,Gold,Stone make something like rain? that increase water but there should be something to keep that titles clean i mean no buildings, make dynamic volcano that looks cool, dynamic maze, mazes, something like even breakable wooden bridges or even ice
and lot more...
I thought this was already asked and the stormattack if troops are lured to, like in tsk.

I think the stormattack is a good plan and the dynamic title to.
But i don't think it will be implemented on a nice way.
if you want to change a area of 10x10 you nee 100 lines of code.
if you want to do something usefull with it it soon will be around a 400+ titles to make it look nice to.
So it won't be used very much i think, it will properly result in a lot of wrong title connections i am afraid.
So that needs to be considered i think
Greets Skypper (Totally Insane)

- Beginning map maker -
<<

Michalpl

Sword Fighter

Posts: 318

Joined: 10 May 2014, 21:46

KaM Skill Level: Fair

Post 12 May 2014, 18:20

Re: New Dynamic Script Ideas

Yea but the .script file has unlimited size right?
<<

Skypper

Knight

Posts: 436

Joined: 28 Jun 2013, 09:37

KaM Skill Level: Fair

Location: Dutch :D

Post 12 May 2014, 19:48

Re: New Dynamic Script Ideas

euhm, I don't know but I have seen quite large scripts.
I meant, that I was afraid it will result in very ugly maps, with a lot of wrong title connections, bugs and or unplayable.
Greets Skypper (Totally Insane)

- Beginning map maker -
<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 13 May 2014, 21:06

Re: New Dynamic Script Ideas

one more script suggestion from my friend - is it possible to add road plans from one house to another, like AI does? :P
smth like Actions.PlanAddStreet(Player, X1, Y1, X2, Y2) could be easier than tons of "for X := X1 to X2" cycles ;D
<<

RandomLyrics

User avatar

Sword Fighter

Posts: 298

Joined: 21 Jul 2013, 02:15

KaM Skill Level: Fair

Post 13 May 2014, 22:33

Re: New Dynamic Script Ideas

one more script suggestion from my friend - is it possible to add road plans from one house to another, like AI does? :P
smth like Actions.PlanAddStreet(Player, X1, Y1, X2, Y2) could be easier than tons of "for X := X1 to X2" cycles ;D
that would be nice :>
<<

Lewin

User avatar

KaM Remake Developer

Posts: 3822

Joined: 16 Sep 2007, 22:00

KaM Skill Level: Skilled

ICQ: 269127056

Website: http://lewin.hodgman.id.au

Yahoo Messenger: lewinlewinhodgman

Location: Australia

Post 14 May 2014, 01:57

Re: New Dynamic Script Ideas

one more script suggestion from my friend - is it possible to add road plans from one house to another, like AI does? :P
smth like Actions.PlanAddStreet(Player, X1, Y1, X2, Y2) could be easier than tons of "for X := X1 to X2" cycles ;D
That's a good idea. Lets call it Actions.PlanConnectRoad(X1, Y1, X2, Y2): Boolean (returns false if it is not possible to connect the road between those two tiles).
<<

Michalpl

Sword Fighter

Posts: 318

Joined: 10 May 2014, 21:46

KaM Skill Level: Fair

Post 14 May 2014, 12:43

Re: New Dynamic Script Ideas

Add it too for AI to connect other storage houses!
<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 14 May 2014, 12:55

Re: New Dynamic Script Ideas

Some new scripts have been added:

6251 More options for AI: Actions.AIDefendAllies, Actions.AIAutoAttackRange, Actions.AIStartPosition
6277 Actions.GroupBlockOrders
6284 States.HouseTypeMaxHealth
6285 States.HouseBuildingProgress
6287 HouseMarketFromWare, HouseMarketToWare, HouseMarketOrderAmount (query what the player has ordered at a market)
6288 Actions.GiveHouseSite

For more info, read wiki ;)
<<

Michalpl

Sword Fighter

Posts: 318

Joined: 10 May 2014, 21:46

KaM Skill Level: Fair

Post 14 May 2014, 13:16

Re: New Dynamic Script Ideas

andreus 6251r this commands were in game AIStartposition its for the AI auto attack
but something usefull that you have made is States.MarketFromWare, ToWare, OrderAmount. it will be probably used for AI simple trade mechanism
<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 14 May 2014, 18:23

Re: New Dynamic Script Ideas

AI dynamic scripts can be useful too, for example you can change AI start position to make attack more difficult to stop:

if States.GameTime mod 12000 = 0 then Actions.AIStartPosition(aPlayer, States.KaMRandomI(100), States.KaMRandomI(100))
<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 16 May 2014, 11:42

Re: New Dynamic Script Ideas

More additions:

6297 Actions.HouseAddBuildingProgress
6298 OnHousePlanRemoved
6301 added OnPlanRoadFieldWinefieldRemoved; OnPlanRoadFieldWinefield renamed to OnPlanRoadFieldWinefieldPlaced
6303 Actions.PlanConnectRoad(Player,X1, Y1, X2, Y2): Boolean
<<

sado1

User avatar

Council Member

Posts: 1430

Joined: 21 May 2012, 19:13

KaM Skill Level: Skilled

Post 16 May 2014, 14:09

Re: New Dynamic Script Ideas

6301 added OnPlanRoadFieldWinefieldRemoved; OnPlanRoadFieldWinefield renamed to OnPlanRoadFieldWinefieldPlaced
Those two just won the most ridiculous KaM scripting function award... Make it shorter, damn it! ;)
<<

andreus

User avatar

Sword Fighter

Posts: 343

Joined: 18 Dec 2011, 12:05

KaM Skill Level: Beginner

Website: https://github.com/andreus791/maps_feedback

Location: Russia

Post 16 May 2014, 14:46

Re: New Dynamic Script Ideas

LOL

there are 6 events, called like OnPlanRoadPlaced ;D
I just wrote "all-in-one" names


EDIT: more scripts added

6309 Actions.RemDefensePosition(PlayerID, PositionID)
6311 Actions.GiveRoad(aPlayer, X, Y: integer); - add finished road
6311 Actions.GiveWinefield(aPlayer, X, Y: integer); - add finished winefield
6311 Actions.GiveField(aPlayer, X, Y: integer); - add finished field
6313 Allow to query count of placed house plans

Return to “Ideas / Suggestions”

Who is online

Users browsing this forum: No registered users and 16 guests