New scripts since r5503
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.
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de