- Joined
- Jul 2, 2008
- Messages
- 156
Okay, I've recently started learning JASS, and I'm getting the hang of it pretty quick.
However, one problem continues to persist when attempting to redo my triggers to JASS.
I keep getting an error "expected set", when I'm providing the function call with what should be the correct arguments.
To clarify, u is the target of my spell, t is the casting unit.
The issue is getting u to move to t's rally point.
The problem is with the call IssuePointOrderLocBJ.
I've searched many JASS forums for alternatives, or anyone with a similar problem.
I've also searched many JASS forums for any JASS code regarding rally points, but have found none. (I would rather use IssuePointOrder, but cannot due to the rally point problems).
Appreciate any help!
However, one problem continues to persist when attempting to redo my triggers to JASS.
I keep getting an error "expected set", when I'm providing the function call with what should be the correct arguments.
JASS:
function Tower_Conversion_Action takes unit u, unit t, location p returns nothing
call TriggerSleepAction( 2 )
call SetUnitOwner( u, GetOwningPlayer(t), true )
call TriggerSleepAction( 0.20 )
call ReplaceUnitBJ( u, 'n000', bj_UNIT_STATE_METHOD_RELATIVE )
u= GetLastReplacedUnitBJ()
call IssuePointOrderLocBJ( u, "move", GetUnitRallyPoint(t) )
call CreateTextTagUnitBJ( "|cffff0000Villager Zombified!|r", u, 0, 8.00, 100, 100, 100, 0 )
call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 64, 90 )
call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 2.00 )
endfunction
To clarify, u is the target of my spell, t is the casting unit.
The issue is getting u to move to t's rally point.
The problem is with the call IssuePointOrderLocBJ.
I've searched many JASS forums for alternatives, or anyone with a similar problem.
I've also searched many JASS forums for any JASS code regarding rally points, but have found none. (I would rather use IssuePointOrder, but cannot due to the rally point problems).
Appreciate any help!
