| 01-25-2007, 02:26 PM | #1 |
Im kinda New at JASS but, i was using Vexorian's caster map... i was using one of his spells as a refrence, and i used Synax Check on JassCraft, and it said Its the Custom-Script was fine, but whenever i try to save it on WE, it disables the JASS-trigger because its says there are errors.. Then i went on Vexorian's caster map, I tried to save it and the same thing happened -.- making me unhappy.... Well here is the JASS, JASS:function Trig_Fire_Eclipse_Conditions takes nothing returns boolean return ( GetSpellAbilityId() == 'A000' ) endfunction function Trig_Fire_Eclipse_Actions takes nothing returns nothing local location Targ = GetSpellTargetLoc() local unit u = GetTriggerUnit() call CasterSetCastSourceLoc( Targ ) call CasterSetRecycleDelay( 3.0 ) call CasterCastAbilityAOELoc( GetOwningPlayer(u), 'A001', "Eclipse", Targ, 200, false, false) set Targ = null set u = null endfunction //=========================================================================== function InitTrig_Fire_Eclipse takes nothing returns nothing set gg_trg_Fire_Eclipse = CreateTrigger() call TriggerRegisterAnyUnitEventBJ( gg_trg_Fire_Eclipse, EVENT_PLAYER_UNIT_SPELL_EFFECT ) call TriggerAddCondition( gg_trg_Fire_Eclipse, Condition( function Trig_Fire_Eclipse_Conditions ) ) call TriggerAddAction( gg_trg_Fire_Eclipse, function Trig_Fire_Eclipse_Actions ) endfunction I See nothing wrong with it ![]() |
| 01-25-2007, 02:29 PM | #2 |
Did you check the function name, that means big and small letters too? And what does it show as error? |
| 01-25-2007, 02:37 PM | #3 |
Next time you may consider telling us what the syntax error is. |
| 01-25-2007, 03:20 PM | #4 |
Its just says error Line 28: Expected a function name Line 29: Expected a function name Line 30: Expected a function name and thats all thats wrong with it... im not sure how to fix it |
| 01-25-2007, 03:23 PM | #5 |
"Expected a function name" has 2 main reasons when they appear for me. 1. there's no such function 2. you wrote the function wrong (Big and Small also matters) |
| 01-25-2007, 03:31 PM | #6 |
I Checked if there was any lower case, or capitalizing, errors but there werent any, and the functions are functions, i looked them up an JassCraft, and they were on Vexorians caster map =/ |
| 01-25-2007, 11:33 PM | #7 |
Try importing the actual caster system on the map first... -Av3n |
| 01-26-2007, 12:07 AM | #8 |
Haha, =P Silly me! i forgot to do that! =] Thanks for that Av3n =P i should be -rep for that, lol even though i dont have any rep |
