• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

ok i need someone to help me tnx in advanced

Status
Not open for further replies.
Level 2
Joined
Apr 23, 2006
Messages
17
Ok i am making a spell its called Energy Balls ( but my variables will have names like Ball_attack_caster )
i didnt knew name yet when i started ^^.

ok what i made is this:

first a spell based on shockwave made it for units.
also a spell based on shockwave for a hero.
a spell called based of silence for a unit.
a spell based on abolish magic.

this is what it is suppost to do: when the hero cast the spell there will come a dummyunit wich cast silence ( makes the hero have no attack) then there will come each second a dummyunit wich will cast teh unitshockwave at the point of the unit wich the hero casted his spell on. and when the hero moves or run out of mana ( less then 15 ) it will stop.

This is what i got: BTW it works once 2nd time it does take mana but it wont cast the
spell(unitshockwave).

Trigger 1:

Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Energy Attack
Actions
Unit - Order Ball_Attack_Caster to Hold Position
Set BallAttack_IS_CANCLED = False
Set Ball_Attack_Caster = (Triggering unit)
Set Ball_Attack_AttackPoint = (Position of (Target unit of ability being cast))
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Unit - Create 1 Dummy (Ball Attack) (NOATK) for (Owner of (Target unit of ability being cast)) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Neutral Dark Ranger - Silence (Position of Ball_Attack_Caster)
Wait 0.01 seconds
Trigger - Run Ball Attack Attack <gen> (ignoring conditions)
Trigger - Run Ball Attack Animation <gen> (ignoring conditions)
Trigger - Turn on Cancle Ball Attack <gen>


Trigger 2:

Events non
Conditions non
Actions
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 1 animation
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation
Animation - Play Ball_Attack_Caster's attack - 2 animation
Wait 1.00 seconds

Trigger 3:

Event non
Conditions
Energy_Attack_Mana Greater than or equal to 15
Actions
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) - 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Unit - Create 1 Dummy (Ball Attack) for (Owner of Ball_Attack_Caster) at ((Position of Ball_Attack_Caster) offset by 50.00 towards ((Facing of Ball_Attack_Caster) + 90.00) degrees) facing Default building facing degrees
Set Ball_Attack_Dummy = (Last created unit)
Unit - Order Ball_Attack_Dummy to Orc Tauren Chieftain - Shockwave Ball_Attack_AttackPoint
Unit - Set mana of Ball_Attack_Caster to ((Mana of Ball_Attack_Caster) - 7.50)
Wait 1.00 seconds
Unit - Remove Ball_Attack_Dummy from the game
Set Energy_Attack_Mana = (Integer((Mana of Ball_Attack_Caster)))
Trigger - Run (This trigger) (checking conditions)


Trigger 4:

Events
Unit - A unit Is issued an order targeting an object
Unit - A unit Is issued an order targeting a point
Unit - A unit Is issued an order with no target
Conditions
(Issued order) Not equal to (Order(shockwave))
(Triggering unit) Equal to Ball_Attack_Caster
Actions
Set BallAttack_IS_CANCLED = True
Unit - Create 1 Dummy (Ball Attack) (DIspel) for (Owner of Ball_Attack_Caster) at (Position of Ball_Attack_Caster) facing Default building facing degrees
Unit - Order (Last created unit) to Night Elf Dryad - Abolish Magic Ball_Attack_Caster
Trigger - Turn off Ball Attack Animation <gen>
Trigger - Turn off Ball Attack Attack <gen>
Trigger - Turn off Cancle Ball Attack <gen>
Wait 1.00 seconds
Animation - Reset Ball_Attack_Caster's animation





if u want u can use this idea for making normal spells channeling but plzz give me credits ( the one who helps me will get credits in my map.
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
i cant see why, but then again i cant read GUI worth s*** compared to JASS

Unit - Order Ball_Attack_Caster to Hold Position
Set BallAttack_IS_CANCLED = False
Set Ball_Attack_Caster = (Triggering unit)

i think this MAY be the prob. You are using Ball_Attack_Caster before you define who he is, so each time, it will use the one that cast it last.
 
Status
Not open for further replies.
Top