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

[Trigger] Problem With Respawn

Status
Not open for further replies.
Level 2
Joined
Nov 26, 2008
Messages
8
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:
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
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...
 
Level 2
Joined
Nov 26, 2008
Messages
8
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:
Level 13
Joined
Sep 14, 2008
Messages
1,408
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...
 
Level 2
Joined
Nov 26, 2008
Messages
8
heh, that map is FULLY RUSSIAN, so, if you can understand...

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

Attachments

  • Vampirism Survival 0.37.w3x
    1.6 MB · Views: 50
Level 2
Joined
Nov 26, 2008
Messages
8
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.
Top