Ressurect

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
frozn has not played that game of course cause thats not how it works

make a variable boolean array called alive set true

when a unit dies set alive [playernumber of triggering unit] to false
then make a trigger for ressurect spell which u can base off thunderclap or some spell without a target, and make a dialog containing players name who heroes are dead using if statments from the boolean, then use hero revive for what dialog he chooses i can make a sample in a bit
 

w00t22

CSS L4D DoD? Steam ID = w00t22
Reaction score
43
Ok here it is

First Off
Code:
Deaths
    Events
        Unit - A unit Dies
    Conditions
        (Owner of (Triggering unit)) Not equal to Player 12 (Brown)
    Actions
        -------- Brown is enemy for my map --------
        Set Alive[(Player number of (Owner of (Triggering unit)))] = False
Spell casted
Code:
Ressurect
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Animate Dead
    Actions
        -------- Replace your spell with animate dead --------
        Dialog - Clear Rez
        Dialog - Change the title of Rez to Ressurect Who?
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Alive[(Integer A)] Equal to False
                    Then - Actions
                        Dialog - Create a dialog button for Rez labelled (Name of (Player((Integer A))))
                        Set RezButton[(Integer A)] = (Last created dialog Button)
                    Else - Actions
        Dialog - Show Rez for (Owner of (Triggering unit))
Dialog Clicked
Code:
Rezing
    Events
        Dialog - A dialog button is clicked for Rez
    Conditions
    Actions
        For each (Integer A) from 1 to 11, do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (Clicked dialog button) Equal to RezButton[(Integer A)]
                    Then - Actions
                        Set Unit_Group = (Units owned by (Player(((Integer A) + 1))))
                        Unit Group - Pick every unit in Unit_Group and do (Actions)
                            Loop - Actions
                                Hero - Instantly revive (Picked unit) at (Position of (Triggering unit)), Show revival graphics
                        Custom script:   call DestroyGroup (udg_Unit_Group)
                    Else - Actions

Nothing for if he wants to cancel the spell, he already wasted mana he has to rez someone
 
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