(Spell Help)

troylow

New Member
Reaction score
0
A spell which you throw a glaive, and then the glaive reaches the targeted point and flies back towards you... Glaive Throw
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Glaive Throw
Actions
Set GlaiveThrower = (Triggering unit)
Set GlaivePoint = (Target point of ability being cast)
Unit - Create 1 Glaive Dummy for (Owner of (Triggering unit)) at ((Position of (Triggering unit)) offset by 200.00 towards (Facing of (Target unit of ability being cast)) degrees) facing Default building facing (270.0) degrees
Set GlaiveDummy = (Last created unit)
Unit - Order GlaiveDummy to Move To (Target point of ability being cast)
Wait 5.00 seconds
Trigger - Turn on Glaive Check 3 <gen>
Trigger - Turn on Glaive Check 2 <gen>
Glaive Check
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 220.00 of (Position of GlaiveDummy) matching (((Matching unit) belongs to an enemy of (Owner of GlaiveDummy)) Equal to True)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Cause GlaiveDummy to damage (Picked unit), dealing 10.00 damage of attack type Pierce and damage type Enhanced
Glaive Check 2
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaivePoint and within a range of 220.00) Equal to True
Actions
Unit - Order GlaiveDummy to Right-Click GlaiveThrower
Glaive Check 3
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaiveThrower and withing a range of 220.00) Equal to True
Actions
Unit - Remove GlaiveDummy from the game
(It Is Still ABIT Bugged
 

troylow

New Member
Reaction score
0
This Skill Some times do not work and i used world editor unlimited to cre8 so there are some new triggers....
 

troylow

New Member
Reaction score
0
sometimes this skill works,sometimes i used it,the glaive will just stay down there and soon be removed
.
 

Vestras

Retired
Reaction score
248
Put in code tags goddamnit, no one will help you elseway.
And don't double post, and DO NOT tripple post! I would -rep you if I could...
 

Ayanami

칼리
Reaction score
288
Well this is unrelated to helping you fixing the spell. But I do believe that the triggers "Position of Unit" leaks. You might want to set the Position of the Unit as a variable and then remove it afterwards with custom script.

EDIT:
Put in code tags goddamnit, no one will help you elseway.
And don't double post, and DO NOT tripple post! I would -rep you if I could...

Yes please do put in code tags. Code tags are effective way for people to see your trigger CLEARLY.

And I totally agree with Vestras, DO NOT double or tripple post please. In a case you forgot to add something to your statement after you posted, just go back and edit that post...
 

troylow

New Member
Reaction score
0
i do not wan to put it as a variable so that in case the hero blinks,the glaive will still fly back to the hero.
 

Jagan

New Member
Reaction score
30
Err...setting it as a variable doesn't change the way your spell would work as long as it's triggered correctly. If anything, setting variables make your codes much neater and organized.
 

Arie

Cool Member
Reaction score
5
Events
Time - Every 0.10 seconds of game time
Conditions
Actions
Unit Group - Pick every unit in (Units within 220.00 of (Position of GlaiveDummy) matching (((Matching unit) belongs to an enemy of (Owner of GlaiveDummy)) Equal to True)) and do (Actions)
Loop - Actions
Special Effect - Create a special effect at (Position of (Picked unit)) using Objects\Spawnmodels\Human\HumanBlood\BloodElfSpellThiefBlood.mdl
Unit - Cause GlaiveDummy to damage (Picked unit), dealing 10.00 damage of attack type Pierce and damage type Enhanced



Glaive Check 2
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaivePoint and within a range of 220.00) Equal to True
Actions
Unit - Order GlaiveDummy to Right-Click GlaiveThrower



Glaive Check 3
Events
Time - Every 1.00 seconds of game time
Conditions
(Is GlaiveDummy near GlaiveThrower and withing a range of 220.00) Equal to True
Actions
Unit - Remove GlaiveDummy from the game


Omgz0r... It's very leaked.

For Glaive check 1, make it enemy of owner of Glaivethrower.

For Glaive check 2, remove the every 1 second, make it specified unit event that a unit is close to something. Order Glaivedummy to move to Glaivethower.

For Glaive check 3, remove the every 1 second.

Sorry my WE is not turned on atm. Hope it helps. :thup:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top