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

[Trigger] Need help with a Spell! +Rep

Status
Not open for further replies.
Level 4
Joined
Sep 30, 2007
Messages
95
<<PROPLEM SOLVED>>

  • Unit - A Unit starts the effect of an Ability
  • Conditions
  • (Ability being cast) Equal to Spell
  • Actions
  • Set MAIN_Caster01 = (Casting Unit)
  • Set MAIN_TempLoc04 = (Position of MAIN_Caster01)
  • Set MAIN_Looper00 = 0
  • Unit - Create 1 Dummy for (Owner of MAIN_Caster01) at MAIN_TempLoc04 facing Default building facing degrees
  • Set MAIN_LC03 = (Last created unit)
  • Trigger - Turn on EFFECT05
So this is the effect

  • Time - Every 0.25 seconds of game time
  • Conditions
  • Actions
  • Set MAIN_Looper00 = (MAIN_Looper00 + 1)
  • Unit - Move MAIN_LC03 instantly to MAIN_TempLoc04
  • If (All Conditions are True) then do (Then Actions) else do (Esle Actions)
  • If - Conditions
  • MAIN_Looper00 Greater than or equal to 80
  • Then - Actions
  • Unit - Remove MAIN_LC03 from the game
  • Trigger - Turn off (This trigger)
  • Custom script: call RemoveLocation (udg_MAIN_TempLoc04)
  • Else - Actions
The idea is that i created a Dummy with Immolation that should deal damage while the armor is on. But the Dummy needs to move to the caster every 0.25 seconds so it wont just stay there. I tried this trigger and it didnt work (Dummy wont move).

If you need more details just tell me :)

Dummy = Chicken (Orb of Frost Model) with Permenent Immolate. (This does work).
MAIN_LC03 = The Dummy
MAIN_TempLoc04 = Possition of Casting Unit

Here is the Spell
 
Last edited:
Level 2
Joined
Mar 30, 2009
Messages
30
you don't repeat setting location var.

put Set MAIN_TempLoc04 = (Position of MAIN_Caster01) just bellow
Set MAIN_Looper00 = (MAIN_Looper00 + 1)

i think it will solve the problem.
 
Level 4
Joined
Sep 30, 2007
Messages
95
Well.. i didnt understand.. sorry xD
Please come with more details and a post that solves the proplem :)


PROPLEM SOLVED
 
Last edited:
Level 2
Joined
Mar 7, 2005
Messages
23
dude , tbh u should give more details .. if u want to get what u want asap.
etc .
is ur spell unit targeted spell?
where does ur unit plan to go? random ? certain place?

i think u should write and explain the spell u r going to make..
 
Level 4
Joined
Sep 30, 2007
Messages
95
you don't repeat setting location var.

put Set MAIN_TempLoc04 = (Position of MAIN_Caster01) just bellow
Set MAIN_Looper00 = (MAIN_Looper00 + 1)

i think it will solve the problem.

I will try

EDIT: It did work dude :D Thanks 999999 times! +Rep!
 
Last edited:
Status
Not open for further replies.
Top