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

For some reason ...

Status
Not open for further replies.
Level 3
Joined
Feb 18, 2007
Messages
34
... i cant seem to get 2 spells to work :

This one is ment to look like a frostbolt that jumpes from one target to another (so far infinitely --- ill change that) and when it strikes one unit it should make a frost nova on the target:

Iced Decay
Events
Unit - A unit Starts the effect of an ability
Conditions
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Iced Decay
(Ability being cast) Equal to Iced Decay (one is for heroes and other for units)
Actions
Set IcedDecayTarget = (Random unit from (Units within 500.00 of (Position of (Target unit of ability being cast)) matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Casting unit))) Equal to True) and ((Matching unit) Not equal to (Target unit of ability being cast)))
Wait 0.05 seconds
Unit - Create 1 Caster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Position of (Target unit of ability being cast))
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Add Frost Nova (Neutral Hostile) to (Last created unit)
Unit - Order (Last created unit) to Undead Lich - Frost Nova (Target unit of ability being cast)
Wait 0.05 seconds
Unit - Create 1 Caster for (Owner of (Casting unit)) at (Position of (Target unit of ability being cast)) facing (Position of IcedDecayTarget)
Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
Unit - Add Iced Decay to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Storm Bolt IcedDecayTarget


As a pointer if i remove everything related to frost nova it works perfectly :|



And this one is ment to look like a great bean strikes away from the caster in the area around him (sort of like an Poison nova from dota , but with schockwaves and repeated) :

Nova
Events
Unit - A unit Begins channeling an ability
Conditions
(Unit-type of (Casting unit)) Equal to Soul Master
(Ability being cast) Equal to Nova
Actions
For each (Integer A) from 1 to (3 x (Level of Nova for (Casting unit))), do (Actions)
Loop - Actions
Set NovaCastAngle = 0.00
For each (Integer B) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Caster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing NovaCastAngle degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Add Mana Beam to (Last created unit)
Unit - Set level of Mana Beam for (Last created unit) to 1
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 50.00 towards (Facing of (Last created unit)) degrees)
Set NovaCastAngle = (NovaCastAngle +
20.00)
Wait 0.10 seconds




ahm --- help plz xD

(btw for any1 who played MU i made a great copy of aqua beam just need the proper project tipe ---- looks so far just like many repeated shockwaves -- but still cool ! )
 
Level 3
Joined
Feb 18, 2007
Messages
34
Right i forgot to mention that the spells CAST ONCE ( so 1 frostbolt+1 frost nova and in other one just one shockwave in te 0 degrees directiong)
 
Level 3
Joined
Feb 18, 2007
Messages
34
this shit is driving me nuts i remade nova completely :


Nova
Events
Unit - A unit Begins channeling an ability
Conditions
(Unit-type of (Casting unit)) Equal to Soul Master
(Ability being cast) Equal to Nova
Actions
Unit Group - Remove all units of NovaCasters from NovaCasters
Set NovaCastAngle = 0.00
For each (Integer B) from 1 to 18, do (Actions)
Loop - Actions
Unit - Create 1 Caster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing NovaCastAngle degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit - Add Mana Beam to (Last created unit)
Unit - Set level of Mana Beam for (Last created unit) to 1
Unit Group - Add (Last created unit) to NovaCasters
Set NovaCastAngle = (NovaCastAngle + 20.00)
For each (Integer A) from 1 to (3 x (Level of Nova for (Casting unit))), do (Actions)
Loop - Actions
Unit Group - Pick every unit in NovaCasters and do (Actions)
Loop - Actions
Unit - Order (Picked unit) to Orc Tauren Chieftain - Shockwave ((Position of (Picked unit)) offset by 50.00 towards (Facing of (Picked unit)) degrees)
Wait 0.50 seconds
Unit Group - Pick every unit in NovaCasters and do (Actions)
Loop - Actions
Unit - Create 1 Caster for (Owner of (Casting unit)) at (Position of (Casting unit)) facing (Facing of (Picked unit)) degrees
Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
Unit Group - Add (Last created unit) to NovaCasters
Unit Group - Remove (Picked unit) from NovaCasters
Wait 0.50 seconds



and now it does a wave around the caster and no 3/6/9 :(
 
Level 3
Joined
Feb 18, 2007
Messages
34
well this sould theoretically work without waits in the loop ---- and it doesnt ----- i really have no idea what the poini with this is ----- ive just remade it and its wierder than ever --- ive chosen to make it a loop effect around the caster that loops 1/2/3 time(s):


Nova
Events
Unit - A unit Begins channeling an ability
Conditions
Actions
Set NovaLoops = 0
Trigger - Turn on Nova Loop <gen>


Nova Loop
Events
Time - Every 0.04 seconds of game time
Conditions
Actions
Unit - Create 1 Caster for (Owner of Antonidas) at (Position of Antonidas) facing NovaCastAngle degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Add Mana Beam to (Last created unit)
Unit - Set level of Mana Beam for (Last created unit) to 5
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave ((Position of (Last created unit)) offset by 50.00 towards (Facing of (Last created unit)) degrees)
Set NovaCastAngle = (NovaCastAngle + 20.00)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NovaCastAngle Equal to 360.00
Then - Actions
Set NovaLoops = (NovaLoops + 1)
Wait 2.00 seconds
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
NovaLoops Equal to (Level of Nova for Antonidas)
Then - Actions
Trigger - Turn off (This trigger)
Else - Actions
Else - Actions
If (NovaCastAngle Equal to 380.00) then do (Set NovaCastAngle = 20.00) else do (Do nothing)

novacastangle is and angle after wich the units are created that resets when at 380 to 20,and SHOULD increase novaloops by 1 every time it is 360 ---- but for some stinkin bizare reason novaloop beccomes 1 for a split second and then jumps back to 0 ...like this if my skill is set to lvl 2 or 3 it never stops , ad while set to 1 for that split second it actually works
 
Last edited:
Level 8
Joined
Sep 13, 2006
Messages
431
use unit starts effect of ability event instead of channeling.

Ya. And keep in mind that triggers discard "casting unit", "entering unit", etc. after 0.10 seconds. If you want to continue to reference the unit, you need to use "triggering unit", as this is kept until the end of the trigger. Similarly, you could pick the unit and use that to reference the unit, as "picked unit" isn't discarded until the trigger is over. Hope this helps...
 
Level 3
Joined
Feb 18, 2007
Messages
34
hmm --- well i forgot to mention how it now works (last posted) ---- now it starts doing the wave arond him endlessly ---- instead of 1/2/3 loops
 
Status
Not open for further replies.
Top