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

Simple Spell Question

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
I need spell That i can Activate (il trigger out it to deal damage to self per second)
but i need it to be activate
and deactivate to stop Damaging self...?
what spell can i hold activate (not channeling) so i can move atk ...etc

Edit: i figured that i can make Spell1 Spell2
when i cast spell1 remove it and add spell2
and so on AND TRIGGER evrything but still i w8 answer if there is spell like that
 
Use Immolation as the base ability and set Targets allowed to self, so that you won't need triggering to determine activation/deactivation.
If you want stats-based damage, e.g. Intelligence x 2, then use Immolation as the base ability, remove damage and AoE and trigger:
  • Tr
  • Events
    • Unit - A unit is issued an order with no target
  • Conditions
  • Actions
    • If (All conditions are true) then do (Actions) else do (Actions)
      • If - Conditions
        • (Issued order) Equal to immolation
      • Then - Actions
        • Unit Group - Add (Triggering unit) to SelfDamageGroup
        • Hashtable - Save (Real(Intelligence x 2)) as Key(damage) of (Key(Triggering unit)) in Hashtable
        • Trigger - Turn on Periodic Damage <gen>
      • Else - Actions
        • If (All conditions are true) then do (Actions) else do (Actions)
          • If - Conditions
            • (Issued order) Equal to unimmolation
          • Then - Actions
            • Unit Group - Remove (Triggering unit) from SelfDamageGroup
            • Hashtable - Clear all child hashtables of (Key(Triggering unit)) in Hashtable
          • Else - Actions
Hashtable action is the action to save the damage to deal the hero to themselves. Don't forget to initialize the hashtable as of:
  • Trigger
  • Events
    • Map Initialization
  • Conditions
  • Actions
    • Hashtable - Create a hashtable
    • Set Hashtable = (Last created hashtable)
The Periodic Damage is the trigger to run every 1.00 second, that deals the damage to the hero. Check if the SelfDamageGroup is empty (Boolean comparison - Unit Group - Unit Group is empty); if it is, Trigger - Turn off (This trigger) = (Periodic Damage <gen>), else, Pick every unit in SelfDamageGroup and Set DamageLoad = (Load (damage) of (Key(Picked unit)) from Hashtable) [Real variable] and Unit - Cause (Picked unit) to damage (Picked unit), dealing DamageLoad of attack type Spells and Damage type Normal.
 
Level 7
Joined
May 18, 2010
Messages
264
Oh yes how i didnt remember of Immolation
THX
+rep

EDIT: cant find
i got to Issued order) Equal to (cant find how to get Immpolation there)

  • (Issued order) Equal to (==) Night Elf Demon Hunter - Activate Immolation
 
Level 7
Joined
May 18, 2010
Messages
264
Double Post i know but this dosent work
  • Kobolt CandleOn
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (==) immolation
        • Then - Actions
          • Special Effect - Create a special effect attached to the overhead of (Triggering unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
I cut trigger
IT dosent show the Special Effect ower target means (Issued order) Equal to (==) immolation ISENT WORKING :(
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Put the Condition in the Conditions place (below Events , above Actions)

EDIT:
But using that action alone can also lets out SFX (don't know why your trigger doesn't work)
Here, a test map is attached (don't mind the name)
 

Attachments

  • WindWalk Cancel.w3x
    17.2 KB · Views: 56
Last edited:
Level 7
Joined
May 18, 2010
Messages
264
Yes nice i see how but now i need the Immolation OR i changed to Phoenix and ... still dosent work i need
(issued order) Equal to (==) Phoenix
this didnt work ... and i click spell phoenix
  • Untitled Trigger 001
    • Events
      • Unit - A unit Is issued an order with no target
    • Conditions
    • Actions
      • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (==) (Order(Phoenix))
        • Then - Actions
          • Set Point = (Position of (Triggering unit))
          • Special Effect - Create a special effect at Point using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
          • Special Effect - Destroy (Last created special effect)
          • Custom script: call RemoveLocation(udg_Point)
        • Else - Actions
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
There are 3 types of Issued Order:

1. Target Object (targets unit)
2. Target Point (targets ground location)
3. No Target (activation of: immolation, searing arrows, frost arrows, etc)

All of these responds to different Event, so if you use Searing Arrows and relate it to Target Object event, it will NEVER work

So, use No Target event to relate with Searing Arrows

A test map is attached
There are 3 heroes in that test map, try all of them
A string order will be shown above caster when you cast any spell
Use that string order for the Condition
 

Attachments

  • Simple Issued Order System.w3x
    14.8 KB · Views: 100
Level 7
Joined
May 18, 2010
Messages
264
Thx i didnt need the map just the triggers =.= such a simple mistake i made
Ani english lessons i can take?

THX MUCH Much much...
+rep
 
Status
Not open for further replies.
Top