• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

I am back with trouble on my back

Status
Not open for further replies.
Level 6
Joined
Oct 10, 2013
Messages
173

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
I am working on it

edit: I havnt tested this yet but I am almost sure this works
  • init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set hash = (Last created hashtable)
  • cast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Animation - Play (Triggering unit)'s attack animation
      • Set caster = (Triggering unit)
      • Set target_loc = (Target point of ability being cast)
      • Custom script: call SaveReal(udg_hash, GetHandleId(udg_caster), 1, 0)
      • Custom script: call SaveLocationHandle(udg_hash, GetHandleId(udg_caster), 2, udg_target_loc)
  • loop
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in some_group and do (Actions)
        • Loop - Actions
          • Custom script: set udg_temp = LoadReal(udg_hash, GetHandleId(GetEnumUnit()), 1) + 20
          • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with temp% transparency
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • temp Greater than or equal to 100.00
            • Then - Actions
              • Unit Group - Remove (Picked unit) from some_group
              • Custom script: set udg_target_loc = LoadLocationHandle(udg_hash, GetHandleId(GetEnumUnit()), 2)
              • Set temp_loc = (Position of (Picked unit))
              • Unit - Create 1 Footman for Player 1 (Red) at temp_loc facing Default building facing degrees
              • Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
              • Unit - Move (Picked unit) instantly to target_loc
              • Custom script: call RemoveLocation(LoadLocationHandle(udg_hash, GetHandleId(GetEnumUnit()), 2))
              • Custom script: call RemoveLocation(udg_target_loc)
              • Custom script: call RemoveLocation(udg_temp_loc)
            • Else - Actions
 

Chaosy

Tutorial Reviewer
Level 40
Joined
Jun 9, 2011
Messages
13,183
Status
Not open for further replies.
Top