- Joined
- Dec 20, 2008
- Messages
- 19
Hello! I need help with an AR mode for my map, I just want it so that you can get a random hero by buying the Random Hero option. And im not exactly sure how to do this. PLz help
Heres my code
Heres my code
-
Human Random
-
Events
- Map initialization
- Conditions
-
Actions
- Set Random_Heros[1] = Paladin
- Set Random_Heros[2] = Archmage
- Set Random_Heros[3] = Mountain King
- Set Random_Heros[4] = Blood Mage
- Set Random_Heros[5] = Keeper of the Grove
- Set Random_Heros[6] = Priestess of the Moon
- Set Random_Heros[7] = Demon Hunter
- Set Random_Heros[8] = Warden
- Set Random_Heros[9] = Corrupt Treant
-
Events
-
Heros red
-
Events
- Unit - A unit owned by Player 1 (Red) Acquires an item
-
Conditions
- (Item being manipulated) Equal to (Item carried by (Triggering unit) of type Random Hero)
-
Actions
- Set Random_Heros[1] = (Unit-type of (Triggering unit))
- Unit - Create 1 Random_Heros[(Random integer number between 1 and 1)] for Player 1 (Red) at (Center of Random Hero 1 <gen>) facing Default building facing degrees
-
Events
Last edited by a moderator: