New scripts since r5503
PostPosted: 02 Oct 2013, 04:54
Here's a list of scripts that got implemented since the last Scripting Demo (r5503). Until the next Demo is released these are subject to change. If you have any ideas or suggestions about THESE scripts (functioning, parametres, etc.) please write them here
If you want to suggest new script ideas - discussion is here: viewtopic.php?f=24&t=1495
Full list of script commands can be found at KaM Remake project wiki: https://code.google.com/p/castlesand/wi ... ptsDynamic
Events:
|| Version || Event || Description || Parameters and types ||
|| 5882
|| `OnHouseDamaged`
|| Occurs when a house is damaged by the enemy soldier. If AttackerIndex is -1 the house was damaged some other way, such as from Actions.HouseDamage.
|| aHouseID: Integer; //House that is damaged <br> aAttackerIndex: Integer; //UnitID of attacker
||
|| 5871
|| `OnHousePlanPlaced`
|| Occurs when player has placed a house plan
|| aPlayerIndex: Integer; //Player who placed it <br> X: Integer; //X coordinate of the plan <br> Y: Integer; //Y coordinate of the plan <br> aHouseType: Integer; //Type of house of the plan
||
|| 5884
|| `OnUnitWounded`
|| Happens when unit is wounded. Attacker can be a warrior, recruit in tower or unknown (-1)
|| aUnitID: Integer; //UnitID who was wounded <br> AttackerID who attacked the unit
||
Actions:
|| Version || Action || Description || Parameters (Integer) || Return value ()
||
|| 5778
|| `AIEquipRate`
|| Sets the warriors equipment rate for AI. (type: 0 - leather, 1 - iron)
|| 1 - player index <br> 2 - type <br> 2 - rate
||
|| 5777
|| `FogCoverRect`
|| Covers a rectangular area in fog of war for player
|| 1 - player index <br> 2 - from X <br> 3 - from Y <br> 4 - to X <br> 5 - to Y
||
|| 5777
|| `FogRevealRect`
|| Reveals a rectangular area in fog of war for player
|| 1 - player index <br> 2 - from X <br> 3 - from Y <br> 4 - to X <br> 5 - to Y
||
P.S. Sorry about formatting, this is almost straight c/p from the wiki code.
If you want to suggest new script ideas - discussion is here: viewtopic.php?f=24&t=1495
Full list of script commands can be found at KaM Remake project wiki: https://code.google.com/p/castlesand/wi ... ptsDynamic
Events:
|| Version || Event || Description || Parameters and types ||
|| 5882
|| `OnHouseDamaged`
|| Occurs when a house is damaged by the enemy soldier. If AttackerIndex is -1 the house was damaged some other way, such as from Actions.HouseDamage.
|| aHouseID: Integer; //House that is damaged <br> aAttackerIndex: Integer; //UnitID of attacker
||
|| 5871
|| `OnHousePlanPlaced`
|| Occurs when player has placed a house plan
|| aPlayerIndex: Integer; //Player who placed it <br> X: Integer; //X coordinate of the plan <br> Y: Integer; //Y coordinate of the plan <br> aHouseType: Integer; //Type of house of the plan
||
|| 5884
|| `OnUnitWounded`
|| Happens when unit is wounded. Attacker can be a warrior, recruit in tower or unknown (-1)
|| aUnitID: Integer; //UnitID who was wounded <br> AttackerID who attacked the unit
||
Actions:
|| Version || Action || Description || Parameters (Integer) || Return value ()
||
|| 5778
|| `AIEquipRate`
|| Sets the warriors equipment rate for AI. (type: 0 - leather, 1 - iron)
|| 1 - player index <br> 2 - type <br> 2 - rate
||
|| 5777
|| `FogCoverRect`
|| Covers a rectangular area in fog of war for player
|| 1 - player index <br> 2 - from X <br> 3 - from Y <br> 4 - to X <br> 5 - to Y
||
|| 5777
|| `FogRevealRect`
|| Reveals a rectangular area in fog of war for player
|| 1 - player index <br> 2 - from X <br> 3 - from Y <br> 4 - to X <br> 5 - to Y
||
P.S. Sorry about formatting, this is almost straight c/p from the wiki code.