• 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.

Timer Hero

Status
Not open for further replies.
Level 4
Joined
Jan 12, 2014
Messages
64
Hi Everyone , I Want to summon a hero in specific time of game and after 3 minutes unit die without any loot (if kill hero below 3 minutes have some loot).
Can anyone help me for this? thanks .:ogre_hurrhurr:
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,219
I think he wants unit to spawn and then last for 3 minutes before it disappear and then no one will get items from it.
  • Actions
    • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
    • Unit - Add a 180.00 second Generic expiration timer to (Last created unit)
 
Easiest way is to start a timer at the beginning of a game. When your unit is created, put a timestamp on it. When it dies, compare the current time to the time stamp. If there is a more than 180 second difference, no loot.

Another way is to start a timer for the specific unit. If the time remaining on the timer is > 0, then give the player loot, otherwise don't.
 
Level 4
Joined
Jan 12, 2014
Messages
64
Try to explain a lot better. It is hard to tell exactly what you want.
Look , i creating a map like wow and there are some bosses in map and i want add 2 bonus heroes that summoning in specific time in specific location , when bonus boss summoning , players have only 2 minutes to kill bonus boss and use boss's item if players can't kill boss before 2 minutes boss gone and boss don't drop any items. (sorry again if my english is suck :D)
 
Level 4
Joined
Jan 12, 2014
Messages
64
Easiest way is to start a timer at the beginning of a game. When your unit is created, put a timestamp on it. When it dies, compare the current time to the time stamp. If there is a more than 180 second difference, no loot.

Another way is to start a timer for the specific unit. If the time remaining on the timer is > 0, then give the player loot, otherwise don't.
i think you got what i want , actually i working WE for 2 month and its hard for me to understand what you said, can you tell me your mean with trigger? please.
 
Well yes, the only reasonable way to interpret this correctly is that the spawned unit disappear from the game (as to the reward are also gone along with it). Who would even try to kill that spawned unit if there's no rewarded therefore after ..?

He meant to say that if you kill the unit within 3 minutes, you get loot. If 3 minutes has transpired and you kill the unit, you will not get loot (the unit will die without giving the player any loot). I just happened to read it right : P.

i think you got what i want , actually i working WE for 2 month and its hard for me to understand what you said, can you tell me your mean with trigger? please.

I don't do GUI, only plain code, so no =). Someone else can likely write it up for you though.
 
yea true ;( but no idea why someone would kill it when timer is expired ;(((

Then you should think about it for awhile longer. Just because you can't see the reason doesn't mean that the reason doesn't exist ;). The op wouldn't be wasting their time on something pointless :p. You'll see the merits of something like this in due time =).

I could give you examples, but that's not my style.
 
Status
Not open for further replies.
Top