Rune Spawn?

megaflame566

New Member
Reaction score
4
How do i make rune spawns like in dota were it spawns a rune in a region for healing,mana and other stuff but it makes sure that theres not another rune already there and it needs to be 30 sec before another rune comes
 

Squishy

You can change this now in User CP.
Reaction score
127
make a trigger that, every 30 seconds creates a rune in an area. But add a condition to check if the region already contains a rune.
 

Ayanami

칼리
Reaction score
288
Or else you could do it this way. Set a boolean variable called RuneBoolean to false. When a unit acquires a rune, set RuneBoolean to true. When it's time for the rune to spawn, if RuneBoolean is set to true, spawn the rune. If not, don't spawn it.

This won't work if the runes are attacked though.
 

tommerbob

Minecraft. :D
Reaction score
110
Or you could simply set a boolean to check if a rune is in a region, right? Seems easier than checking whether a unit as acquired the rune or not, and it would solve the "if runes are attacked" problem.
 

Genemos

New Member
Reaction score
3
Or else you could do it this way. Set a boolean variable called RuneBoolean to false. When a unit acquires a rune, set RuneBoolean to true. When it's time for the rune to spawn, if RuneBoolean is set to true, spawn the rune. If not, don't spawn it.

This won't work if the runes are attacked though.

Was thinking the same, should work.

Also, you would have to make a third trigger, looking like this

Event
A unit is issued an order targeting an object
Condition
(Item type of (Target Item of Issued Order equal to "name of your runes"
Event
Set RuneBoolean to true

I haven't had a chance to test it, but if you do as Glenphir and then add this as an additional trigger it should still work if the rune is attacked.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top