• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Problem With Respawn

Status
Not open for further replies.

Dwarf

D

Dwarf

I have some kind of an error... I'm trying to create a map with my friend, and, the problem is - when a unit dies, the other unit must get to the place, where it is, and, depending on that action, the unit must revive at the region...
  • ressurect
    • Events
      • Unit - Енкордо, Демон Подземелья 0015 <gen> Dies
      • Unit - Енкордо, Демон Подземелья 0050 <gen> Dies
    • Conditions
    • Actions
      • Special Effect - Create a special effect at (Position of (Triggering unit)) using buildings\undead\AltarOfDarkness\AltarOfDarkness.mdl
      • Wait 5.00 seconds
      • If (((Position of (Dying unit)) is visible to Player 11 (Dark Green)) Equal to True) then do (Hero - Instantly revive (Dying unit) at (Center of Vamp spawn <gen>), Hide revival graphics) else do (Do nothing)
      • Unit - Create 1 Acolyte for (Owner of (Triggering unit)) at (Center of Vamp spawn <gen>) facing Default building facing degrees
Don't look at the symbols - these are russian letters :grin:
 
When I understood you right you want the unit to be revived when another unit comes near it..

Therefor you set the position of the fallen unit to a variable and check with a periodic event if another unit is in range of that unit.


tip: NEVER use units with russan names... ALWAYS use english because EVERYBODY understands that...
 
Therefor you set the position of the fallen unit to a variable and check with a periodic event if another unit is in range of that unit.
could you make a trigger like that? I'm new with the editor...

Russian names are needed - it is made for servers with Russian people :)
but, i'm with my friend will change the language to English, when we are done with the map:)

and +rep to you both for help :)

ADD!
I think i understood what you two where talking about, i'll try to make it by myself.

ADD!
damn, i couldn't do it... still trying...
 
Last edited by a moderator:
Mh I have no we at the mom so I can't post the REAL trigger but at least I can try...

  • Event: Unit dies
  • Condition: (Unit-type of (triggering unit) equal to HERO) = true (boolean comp.)
  • Actions: Set TempPoint = (position of triggering unit=
    • Set TempUnit = (triggering unit)
    • Trigger - turn on (check for respawn)
  • Event: Every 0.25 seconds of gametime
  • Condition:
  • Actions: Unit group - Pick every unit in Range of "YourRange" of (TempPoint) and do actions:
    • If(picked unit = "theOtherUnit")
    • Then: Hero - Revive TempUnit instantly at TempPoint...
      • Turn off "this trigger"
      • If you want you can clear the variables now...

I wrote this triggers by hand so please excuse the mistakes...
 
heh, that map is FULLY RUSSIAN, so, if you can understand...

i'm still creating skills, and other, BUT the map is playable ;)
 

Attachments

that's the bad thing...
and, another question, is it real, to make a trigger, that changes the language of the game depending on the pushed button? ;) something like a Dialog Menu, or something like that.
is it real? :S
 
Status
Not open for further replies.
Back
Top