• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

I need a rune creating trigger!

Status
Not open for further replies.
Level 15
Joined
Aug 11, 2009
Messages
1,606
ok this is the trigger:
  • 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)
Is it fine?and leakless?I think yes...
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?
 
Level 15
Joined
Aug 11, 2009
Messages
1,606
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]

I was making the question for the trigger i posted above,how will it exaclty work?

And cHeRoL thx about the system,but this looks a lot like the river item spawn triggers from DotA Template.
 
Level 28
Joined
Mar 25, 2008
Messages
2,955
ok this is the trigger:
  • 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)
Is it fine?and leakless?I think yes...
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?
First, use that trigger

Second: It's a new random point for each event
 
Status
Not open for further replies.
Top