- Joined
- May 16, 2004
- Messages
- 76
Pretty much, This is random script designed that everytime a person kills one of 3 buildings, a random 1 of 3 event will happen. And that if an event happens, it cannot happen again leaving the next 2 events.. etc The problem i am having is that i do not know how to program the 2 script. Please Help!
-
BuildingRandom
-
Events
- Unit - A unit Dies
-
Conditions
- ((Dying unit) Equal to VineyardBuildingss[1]) or (((Dying unit) Equal to VineyardBuildingss[2]) or ((Dying unit) Equal to VineyardBuildingss[3]))
-
Actions
- Set RandomVineNum = (Random integer number between BuildingNumMin and BuildingNumMax)
- Set BuildingNumMin = 1
- Set BuildingNumMax = 3
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RandomVineNum Equal to 1
-
Then - Actions
- Set BuildingNumMin = 2
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RandomVineNum Equal to 2
-
Then - Actions
- Custom script: WHAT GOES HERE????
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RandomVineNum Equal to 3
-
Then - Actions
- Set BuildingNumMax = 2
- Else - Actions
-
If - Conditions
-
Events