R
Repo-Man
Guest
Ok so im making a spell that involves using an item based ability, and because theyve not got orderstrings ive got the order ID and was reading how to cast the spell, im not good at JASS at all and the only way to cast it is using jass... so I was woundering if i could get help, i got the jass function now i need to make the last created unit cast it on the attacking unit.
native IssueImmediateOrderById is the code, 852274 is the string of the ability (unit targeted mirror image).
BTW: this is what i got
Chance on hit mirror image ability.
native IssueImmediateOrderById is the code, 852274 is the string of the ability (unit targeted mirror image).
BTW: this is what i got
Code:
Sword of Deception
Events
Unit - A unit Is attacked
Conditions
Actions
Set Chance = (Random integer number between 1 and 100)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
And - All (Conditions) are true
Conditions
Chance Less than or Equal to (5 x (Level of Sword of Deception for (Attacking unit)))
((Attacking unit) has buff Sword of Deception ) Equal to True
Then - Actions
Unit - Create 1 Dumbo for Player 1 (Red) at (Position of Blademaster 0000 <gen>) facing Default building facing degrees
Custom script: native IssueImmediateOrderById( GetLastCreatedUnit(), GetAttacker(), "852274" )
Wait 0.50 seconds
Unit - Remove (Last created unit) from the game
Else - Actions
Chance on hit mirror image ability.


