- Joined
- Dec 11, 2014
- Messages
- 662
[Solved] Making a random race button
When I press on the button the main building disappears... Why?
-
Checkpoints
-
Events
- Map initialization
- Conditions
-
Actions
- Set RandomRace[1] = (Units of type Castle)
- Set RandomRace[2] = (Units of type Necropolis)
- Set RandomRace[3] = (Units of type Temple Of Tides)
- Set RandomRace[4] = (Units of type Tree Stump)
- Set RandomRace[5] = (Units of type Altar Of Heroes)
- Set RandomRace[6] = (Units of type Heaven Portal)
- Set RandomRace[7] = (Units of type Poisoned Spring)
- Set RandomRace[8] = (Units of type Tree Of Life)
- Set RandomRace[9] = (Units of type Dragon Nest)
- Set RandomRace[8] = (Units of type Stronghold)
-
Events
-
RedRandom
-
Events
- Unit - Race Market 0000 <gen> Sells a unit
-
Conditions
- (Unit-type of (Sold unit)) Equal to Random Race
-
Actions
- Unit - Remove (Sold unit) from the game
- Unit - Replace (Triggering unit) with a (Unit-type of (Random unit from RandomRace[(Random integer number between 1 and 8)])) using The old unit's relative life and mana
-
Events
Last edited: