• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[JASS] Compile Error ???

Status
Not open for further replies.
Level 8
Joined
Oct 8, 2005
Messages
409
I don't use jass, but my trigger keeps giving me a Compile error "Excepted a function name"

and then:

function Trig__Ice_Chamber_Destination_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( udg_ICeChamber[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001001001001001002)))))], GetUnitLoc(udg_Wendigo[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001002001001001001002)))))]) )
endfunction

//===========================================================================
function InitTrig__Ice_Chamber_Destination takes nothing returns nothing
set gg_trg__Ice_Chamber_Destination = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg__Ice_Chamber_Destination, gg_rct_Ice_Region )
call TriggerAddAction( gg_trg__Ice_Chamber_Destination, function Trig__Ice_Chamber_Destination_Actions )
endfunction
 
Whoooo... I understood -1% of all this mess heheh
let me organize this...
JASS:
function Trig__Ice_Chamber_Destination_Actions takes nothing returns nothing
call WaygateSetDestinationLocBJ( udg_ICeChamber[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001001001001001002)))))], GetUnitLoc(udg_Wendigo[GetConvertedPlayerId(GetOwningPlayer(GroupPickRandomUnit(GetUnitsInRectMatching(gg_rct_Ice_Region, Condition(function Trig__Ice_Chamber_Destination_Func001002001001001001002)))))]) )
endfunction

//===========================================================================
function InitTrig__Ice_Chamber_Destination takes nothing returns nothing
set gg_trg__Ice_Chamber_Destination = CreateTrigger( )
call TriggerRegisterEnterRectSimple( gg_trg__Ice_Chamber_Destination, gg_rct_Ice_Region )
call TriggerAddAction( gg_trg__Ice_Chamber_Destination, function Trig__Ice_Chamber_Destination_Actions )
endfunction

(that's what I call a huge line)
now I can analize it better. The only thing I didn't understand (let's say I'm optimist to say "olny") is that I'm not seeing the Conditional Function Trig__Ice_Chamber_Destination_Func001002001001001001002. Maybe PurplePoot can explain it better
 
Level 8
Joined
Oct 8, 2005
Messages
409
#1 I didn't write that mess, the world editor did when I built the trigger with the combo boxes it provides
#2 I don't know Jass, my programming skills go as far as Basic and HTML
#3 I just wanna know why it is giving me an error in Jass, when I didn't use any Jass, and how to fix the error

ty for your time
 
Level 40
Joined
Dec 14, 2005
Messages
10,532
Marcel - Thats the lovely, decipherable name for Filters in Converted GUI-JASS. He didnt seem to include it in this. ( Hello, if you dont have this at all, then thats your problem, Unscrewed )

and...

#1 - You still can use JASS tags - theyre part of the SITE, not Wc3
#2 - Again, why did you Convert to Custom Text?
#3 - The only compile errors I got had to do with the fact i didnt have the variables/functions you used, so make sure you do. ( before, it looked like the comma was replacing a bracked cuz while posting, the Topic Review breaks that monster into 4 lines. )
 
Level 3
Joined
Aug 17, 2006
Messages
38
Here's some things to try:

Make sure all the variables it's refering to exist. Typically if you open the trigger up again in the GUI editor, and nothing is in red, then they're fine.

Remake the trigger completely, without any copy and pasting. Then delete the old trigger.

Check the regions being selected. Change them to something else temporarily and see if that makes a difference. Then change it back to the original region.

Other than that, I'm not sure what could be the problem. GUI code usually doesn't give compile errors, but I've seen it give errors before. You could check the trigger immediately before it as well, maybe it's the real culprit.
 
Status
Not open for further replies.
Top