• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Demonic Curse ver0.1

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
The witch is cursing a mortal whit Demonic Curse .Demonic Curse bring alive for 6 sec the big deamon of the hell that drain's the mortal soul.
Contents

Just another Warcraft III map (Map)

Reviews
00:32, 1st Dec 2009 TriggerHappy: You are recycling your instances wrong. The spell is far to simple. You pause the caster. Rejected, permanently.

Moderator

M

Moderator

00:32, 1st Dec 2009
TriggerHappy:

You are recycling your instances wrong.

The spell is far to simple.

You pause the caster.

Rejected, permanently.
 

unk

unk

Level 5
Joined
Mar 19, 2009
Messages
31
  • Demonic Curse
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Demonic Curse
    • Actions
      • Set Target1 = (Position of (Target unit of ability being cast))
      • Set Target2 = (Target1 offset by 400.00 towards ((Facing of (Target unit of ability being cast)) - 180.00) degrees)
      • Set Casting_count = (Casting_count + 1)
      • Set Casting_time[Casting_count] = 0
      • Set Casting_unit[Casting_count] = (Triggering unit)
      • Unit Group - Add Casting_unit[Casting_count] to Stun_casters
      • Unit - Add stun sfx (Neutral) to Casting_unit[Casting_count]
      • Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at Target2 facing (Angle from Target2 to Target1) degrees
      • Unit - Add a 5.50 second Generic expiration timer to (Last created unit)
      • Unit - Set level of Life Drain (Neutral Hostile) for (Last created unit) to (Level of Demonic Curse for (Casting unit))
      • Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Target unit of ability being cast)
      • Custom script: call RemoveLocation( udg_Target1 )
      • Custom script: call RemoveLocation( udg_Target2 )


  • Channel Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Casting_count, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Casting_time[(Integer A)] Equal to 0
            • Then - Actions
              • Unit - Pause Casting_unit[(Integer A)]
            • Else - Actions
          • Set Casting_time[(Integer A)] = (Casting_time[(Integer A)] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Casting_time[(Integer A)] Equal to 180
            • Then - Actions
              • Unit - Unpause Casting_unit[(Integer A)]
              • Set Casting_time[(Integer A)] = 0
              • Unit - Remove stun sfx (Neutral) from Casting_unit[(Integer A)]
              • Unit Group - Remove Casting_unit[(Integer A)] from Stun_casters
              • Set Casting_count = (Casting_count - 1)
            • Else - Actions
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,240
Use

  • Trigger goes here
  • [ /TRIGGER][ /HIDDEN]
  • Remove the spaces before those /.
  • Right click the name of your trigger in trigger editor, right pane. Select copy as text.
  • The spell is not MUI for some reason. Turn off/on channel loop when needed. Spell is run, trigger is off -> turn on. Caster removed from group, unit group empty -> turn off trigger. Change the tooltip, Stuned -> stunned.
 
Level 9
Joined
Aug 2, 2008
Messages
219
To attatch the triggers to the mainpost just do as Maker told you. I don´t really get why it´s that hard to add a screenshot to the spell, i remember your last spell submission also lacked a screenshot.

attachment.php


Demonic Curse:
  • Demonic Curse
    • Events
      • Unit - A unit Starts the effect of an ability (Bad)
    • Conditions
      • (Ability being cast) Equal to Demonic Curse
    • Actions
      • Set Target1 = (Position of (Target unit of ability being cast))
      • Set Target2 = (Target1 offset by 400.00 towards ((Facing of (Target unit of ability being cast)) - 180.00) degrees)
      • Set Casting_count = (Casting_count + 1)
      • Set Casting_time[Casting_count] = 0
      • Set Casting_unit[Casting_count] = (Triggering unit)
      • Unit Group - Add Casting_unit[Casting_count] to Stun_casters
      • Unit - Add stun sfx (Neutral) to Casting_unit[Casting_count]
      • Unit - Create 1 Dummy unit for (Owner of (Casting unit)) at Target2 facing (Angle from Target2 to Target1) degrees
      • Unit - Add a 5.50 second Generic expiration timer to (Last created unit)
      • Unit - Set level of LifeDrain (Neutral feindlich) for (Last created unit) to (Level of Demonic Curse for (Casting unit))
      • Unit - Order (Last created unit) to Neutral Dark Ranger - Life Drain (Target unit of ability being cast)
      • Custom script: call RemoveLocation( udg_Target1 )
      • Custom script: call RemoveLocation( udg_Target2 )
Channel Loop:
  • Channel Loop
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Casting_count, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Casting_time[(Integer A)] Equal to 0
            • Then - Actions
              • Unit - Pause Casting_unit[(Integer A)]
            • Else - Actions
          • Set Casting_time[(Integer A)] = (Casting_time[(Integer A)] + 1)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Casting_time[(Integer A)] Equal to 180
            • Then - Actions
              • Unit - Unpause Casting_unit[(Integer A)]
              • Set Casting_time[(Integer A)] = 0
              • Unit - Remove stun sfx (Neutral) from Casting_unit[(Integer A)]
              • Unit Group - Remove Casting_unit[(Integer A)] from Stun_casters
              • Set Casting_count = (Casting_count - 1)
            • Else - Actions
This spell is basicly life liferdrain, you just added some effects and paused the casting and target unit. The spell is not MUI and therefore the paused caster may never gets unpaused. This also has an useless imported model and lacks description. ATM im not in the mood to check the coding, but recommend you to take a look at the Essentials Tutorial.

[offtopic]
Am i the only one who knows the [plain][/plain] tags ? They are pretty useful if you want to show someone how to use other tags, for example [hidden="I´m an example"][/hidden]. Just a small hint for those who place some random letters inside the tags to show how they are written.
 

Attachments

  • adlashfjklahstgowe.png
    adlashfjklahstgowe.png
    875 KB · Views: 387
Top