- Joined
- Aug 11, 2009
- Messages
- 1,606
I need a trigger which creates a rune of invisibilty at a random point of the map every 20 seconds...To be hontest i have more problems at creating the rune than the trigger,so i need some advice for it too!
No, that does not leak.
For the secnd question, do you have something like
Set Integer = random number between x and y
Set point = point_array[Integer]
First, use that triggerok this is the trigger:
Is it fine?and leakless?I think yes...
AddRunes
Events
Time - Every 20.00 seconds of game time
Conditions
Actions
Set MapPlayable = (Random point in (Playable map area))
Item - Create Rune of Invulnerability at MapPlayable
Custom script: call RemoveLocation(udg_MapPlayable)
I was also wondering about something.Let's say we have 100Points in a map.The variables choses randomly Point31,then it will create the rune to this point.Next time the rune will be created at the same Point?The Point31?Or each time a new random point will be selected?