HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Revival Trigger

08-29-2004, 11:20 PM#1
pappi.chullo
The trigger basically revives a tower after it dies 5 seconds after it dies. The trigger has two bugs:

1. It sometimes does not revive.
2. It also sometimes revives multiple times in the same spot.

Quite frusterating. :\

Quote:
Ressurect Tower
Events
Unit - A unit Dies
Conditions
Actions
Set dying_tower = (Dying unit)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Owner of dying_tower) Not equal to (Owner of (Killing unit))
Then - Actions
Player - Add 1 to (Owner of (Killing unit)) Current gold
Special Effect - Create a special effect at (Position of dying_tower) using UI\Feedback\GoldCredit\GoldCredit.mdl
Else - Actions
Wait 4.50 seconds
Special Effect - Create a special effect at (Position of dying_tower) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
Wait 0.50 seconds
Unit - Create 1 Boulder Tower for Neutral Hostile at (Position of dying_tower) facing Default building facing degrees
Set dying_tower = No unit
08-29-2004, 11:56 PM#2
HexenLordX
Quote:
Originally Posted by pappi.chullo
The trigger basically revives a tower after it dies 5 seconds after it dies. The trigger has two bugs:

1. It sometimes does not revive.
2. It also sometimes revives multiple times in the same spot.

Quite frusterating. :\

Is everything below the Else Actions line... part of the else actions? If it is, thats your problem, because then your tower would only ressurrect if you kill it.
08-30-2004, 12:10 AM#3
pappi.chullo
Sorry about the confusion. No.

The actions after not on else sub-section.
08-30-2004, 01:36 AM#4
Progniss
In map Init set a Unit-type to the type of tower.

Code:
Event
unit dies

Condition
Triggering unit = Towers (unit-type vairable)

Action
wait - ##
Create 1 Tower at place of Towers facing blahblah


as for getting money from killing other players or nuetral/comp just do this at map init for w/e player you want.
Code:
Player - Turn Gives bounty On for "Player xx (Color)"

Hope that helps
08-30-2004, 02:14 AM#5
pappi.chullo
Sorry, but it doesn't.

Edit: Okay. I tested it once again, and saw that it usually doen't revive when the killing unit dies as well. One of the two are revived.

Edit: Turns out that the variables had simply messed up the triggers. Excuse me for my stupidity.
08-30-2004, 09:19 PM#6
Vexorian
Use Triggering Unit instead of that dying_tower variable.