Sk8-tEr
New Member
- Reaction score
- 5
I converted this to JASS
It converts to this exactly
I did Syntax check and it says there is a problem with line 14
I did nothing to the JASS script but the conversion doesn't work ???
Edit: Btw this has nothing to do with my JASS skills or reading tutorials I think...
Code:
Convert Copy Copy
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Polymorph
Actions
Unit - Set (Casting unit) movement speed to 50.00
It converts to this exactly
JASS:
function Trig_Convert_Copy_Copy_Conditions takes nothing returns boolean
if ( not ( GetSpellAbilityId() == 039;Aply039; ) ) then
return false
endif
return true
endfunction
function Trig_Convert_Copy_Copy_Actions takes nothing returns nothing
call SetUnitMoveSpeed( GetSpellAbilityUnit(), 50.00 )
endfunction
//===========================================================================
function InitTrig_Convert_Copy_Copy takes nothing returns nothing
set gg_trg_Convert_Copy_Copy = CreateTrigger( )
call TriggerRegisterAnyUnitEventBJ( gg_trg_Convert_Copy_Copy, EVENT_PLAYER_UNIT_SPELL_CAST )
call TriggerAddCondition( gg_trg_Convert_Copy_Copy, Condition( function Trig_Convert_Copy_Copy_Conditions ) )
call TriggerAddAction( gg_trg_Convert_Copy_Copy, function Trig_Convert_Copy_Copy_Actions )
endfunction
I did Syntax check and it says there is a problem with line 14
JASS:
set gg_trg_Convert_Copy_Copy = CreateTrigger( )
I did nothing to the JASS script but the conversion doesn't work ???
Edit: Btw this has nothing to do with my JASS skills or reading tutorials I think...