aight, i am giving jass a try and i am trying to get a voting system in for a quiz i am doing for my map. i keep getting an "Expected a Function Name" therefor not letting me save my map until i either delete the problem or fix it. here is the trigger i have for the voting system i set up. I put :arrow: next to the error'ed lines. if you need more information then just tell pm me or leave a post
//===========================================================================
// Trigger: Quiz 1
//===========================================================================
function Trig_Quiz_1_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 4.00, "TRIGSTR_856" )
call TriggerSleepAction( 0.20 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_870" )
call TriggerSleepAction( 4.80 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_857" )
call TriggerSleepAction( 5.00 )
:arrow: call Voting( "Who created this map?", 10.00, false, "Sir-Alex created this map", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_858" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is the Sir clan leader?", 10.00, false, "Sir-Daniel is the Sir clan leader", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_859" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who turns into cheese?", 10.00, false, "Expired_Milk turns to cheese", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_860" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who took the cookie from the cookie jar?", 10.00, false, "I wish I knew so I could shove that cookie down their throat", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_861" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who was the origional Sir clan leader?", 10.00, false, "MisterWiggles was the origional Sir clan leader", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_862" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who made a famous TD called Border Defense?", 10.00, false, "Sir-SlapsAlot made the TD called Border Defense", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_863" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is a gigantic lizard?", 10.00, false, "Chomper_Z is a gigantic lizard", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_864" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is the hardcore melee player of the Sir clan?", 10.00, false, "RingOfScale is the hardcore melee player", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_865" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who helped Sir-Alex create the word 'Hanhiiialoooogoo?'", 10.00, false, "starwarrior", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_866" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Put the sushi in the...?", 10.00, false, "Put the sushi in the kuchi!", "Banana Peel", "", "Toilet", "", "Ocean", "", "Kuchi", "", "Car", "", "Computer", "", "Microwave")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_869" )
call TriggerSleepAction( 0.01 )
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_868" )
endfunction
//===========================================================================
function InitTrig_Quiz_1 takes nothing returns nothing
set gg_trg_Quiz_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(0), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(1), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(2), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(3), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(4), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(5), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(6), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(7), "-quiz", true )
call TriggerAddAction( gg_trg_Quiz_1, function Trig_Quiz_1_Actions )
endfunction
//===========================================================================
// Trigger: Quiz
//===========================================================================
function Trig_Quiz_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Quiz takes nothing returns nothing
set gg_trg_Quiz = CreateTrigger( )
call TriggerAddAction( gg_trg_Quiz, function Trig_Quiz_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Melee_Initialization( )
call InitTrig_Sir_Alex( )
call InitTrig_Sir_Daniel( )
call InitTrig_ChomperZ( )
call InitTrig_RingOfScale( )
call InitTrig_MisterWiggles( )
call InitTrig_Sir_SlapsAlot( )
call InitTrig_Initialization_and_Comments( )
call InitTrig_Setup_Leaderboard( )
call InitTrig_Update_Leaderboard( )
call InitTrig_Quiz_1( )
call InitTrig_Quiz( )
endfunction
//===========================================================================
// Trigger: Quiz 1
//===========================================================================
function Trig_Quiz_1_Actions takes nothing returns nothing
call DisplayTimedTextToForce( GetPlayersAll(), 4.00, "TRIGSTR_856" )
call TriggerSleepAction( 0.20 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_870" )
call TriggerSleepAction( 4.80 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_857" )
call TriggerSleepAction( 5.00 )
:arrow: call Voting( "Who created this map?", 10.00, false, "Sir-Alex created this map", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_858" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is the Sir clan leader?", 10.00, false, "Sir-Daniel is the Sir clan leader", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_859" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who turns into cheese?", 10.00, false, "Expired_Milk turns to cheese", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_860" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who took the cookie from the cookie jar?", 10.00, false, "I wish I knew so I could shove that cookie down their throat", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_861" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who was the origional Sir clan leader?", 10.00, false, "MisterWiggles was the origional Sir clan leader", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_862" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who made a famous TD called Border Defense?", 10.00, false, "Sir-SlapsAlot made the TD called Border Defense", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_863" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is a gigantic lizard?", 10.00, false, "Chomper_Z is a gigantic lizard", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_864" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who is the hardcore melee player of the Sir clan?", 10.00, false, "RingOfScale is the hardcore melee player", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_865" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Who helped Sir-Alex create the word 'Hanhiiialoooogoo?'", 10.00, false, "starwarrior", "Sir-Alex", "", "Sir-Daniel", "", "Sir-SlapsAlot", "", "MisterWiggles", "", "starwarrior", "", "RingOfScale", "", "Expired_Milk")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 5.00, "TRIGSTR_866" )
call TriggerSleepAction( 2.00 )
:arrow: call Voting( "Put the sushi in the...?", 10.00, false, "Put the sushi in the kuchi!", "Banana Peel", "", "Toilet", "", "Ocean", "", "Kuchi", "", "Car", "", "Computer", "", "Microwave")
call TriggerSleepAction( 10.00 )
call DisplayTimedTextToForce( GetPlayersAll(), 10.00, "TRIGSTR_869" )
call TriggerSleepAction( 0.01 )
call DisplayTimedTextToForce( GetPlayersAll(), 12.00, "TRIGSTR_868" )
endfunction
//===========================================================================
function InitTrig_Quiz_1 takes nothing returns nothing
set gg_trg_Quiz_1 = CreateTrigger( )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(0), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(1), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(2), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(3), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(4), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(5), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(6), "-quiz", true )
call TriggerRegisterPlayerChatEvent( gg_trg_Quiz_1, Player(7), "-quiz", true )
call TriggerAddAction( gg_trg_Quiz_1, function Trig_Quiz_1_Actions )
endfunction
//===========================================================================
// Trigger: Quiz
//===========================================================================
function Trig_Quiz_Actions takes nothing returns nothing
endfunction
//===========================================================================
function InitTrig_Quiz takes nothing returns nothing
set gg_trg_Quiz = CreateTrigger( )
call TriggerAddAction( gg_trg_Quiz, function Trig_Quiz_Actions )
endfunction
//===========================================================================
function InitCustomTriggers takes nothing returns nothing
call InitTrig_Melee_Initialization( )
call InitTrig_Sir_Alex( )
call InitTrig_Sir_Daniel( )
call InitTrig_ChomperZ( )
call InitTrig_RingOfScale( )
call InitTrig_MisterWiggles( )
call InitTrig_Sir_SlapsAlot( )
call InitTrig_Initialization_and_Comments( )
call InitTrig_Setup_Leaderboard( )
call InitTrig_Update_Leaderboard( )
call InitTrig_Quiz_1( )
call InitTrig_Quiz( )
endfunction