- Joined
- Aug 12, 2011
- Messages
- 44
I have a map where a rune spawns every 45 seconds at a random location. And there are destructibles that may drop an item.
If a rune hasn't been taken a new one should not spawn, but now I don't find a way to differentiate the Item - rune or not.
runecheck = 0 -> no rune on map
runecheck = 1 -> rune anywhere at map
It worked without that conditions (now it doesn't) but I hadn't added normal items at this point.
regards, toasted
If a rune hasn't been taken a new one should not spawn, but now I don't find a way to differentiate the Item - rune or not.
-
rune
-
Events
- Time - Every 45.00 seconds of game time
- Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- RUNECHECK Equal to 0
-
Then - Actions
- Set RUNECHECK = 1
- Set Runespot = (Random integer number between 1 and 4)
- Set Runetype = (Random integer number between 1 and 5)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runetype Equal to 1
-
Then - Actions
- Set Rune = Rune of Haste
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runetype Equal to 2
-
Then - Actions
- Set Rune = Rune of Regeneration
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runetype Equal to 3
-
Then - Actions
- Set Rune = Rune of Armor
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runetype Equal to 4
-
Then - Actions
- Set Rune = Rune of Double Damage
-
Else - Actions
- Set Rune = Rune of Invisibilty
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runespot Equal to 1
-
Then - Actions
- Item - Create Rune at (Center of Region 012 <gen>)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runespot Equal to 2
-
Then - Actions
- Item - Create Rune at (Center of Region 014 <gen>)
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Runespot Equal to 3
-
Then - Actions
- Item - Create Rune at (Center of Region 015 <gen>)
-
Else - Actions
- Item - Create Rune at (Center of Region 016 <gen>)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- Game - Display to (All players) for 5.00 seconds the text: A rune has spawned.
-
Else - Actions
- Game - Display to (All players) for 5.00 seconds the text: The rune spot is st...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
rune taken
-
Events
- Unit - A unit Acquires an item
-
Conditions
- (Item-class of (Picked item)) Equal to Powerup
-
Actions
- Set RUNECHECK = 0
- Game - Display to (All players) for 5.00 seconds the text: rune taken
-
Events
runecheck = 1 -> rune anywhere at map
It worked without that conditions (now it doesn't) but I hadn't added normal items at this point.
regards, toasted