function Trig_empty_player_slots_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_empty_player_slots_Func001Func001C())then
set udg_booleans03[GetForLoopIndexA()]=true
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_count_number_players_at_start_Actions takes nothing returns nothing
call TriggerSleepAction(0.25)
if(Trig_count_number_players_at_start_Func002C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func003C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func004C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func005C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func006C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func007C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func008C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func009C())then
set udg_integer02=(udg_integer02+1)
else
endif
call DisableTrigger(GetTriggeringTrigger())
endfunction
i honestly am stuck, i tried for like over 3 hours trying to figure it out. (most of the time was taken up by loading the map to see if what i did worked)
i changed around the true and falses, and couldnt find any solution
can anyone help me to make it single player?
also what does booleans mead? ive been seeing a whole bunch of them in the triggers, and just curious
boolean is a type of variable it can just be 1 or 0 (true or false)
integers are the normal ones (~1-65000 but im not 100% sure bout this)
and strings are spaces where you can place text in
greets Dekar
ps:
get ultra compare and compare my file with the original, so ull
see what i did!
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
boolean is a type of variable it can just be 1 or 0 (true or false)
integers are the normal ones (~1-65000 but im not 100% sure bout this)
and strings are spaces where you can place text in
greets Dekar
ps:
get ultra compare and compare my file with the original, so ull
see what i did!
sorry, im kinda new, whats untra compare, & what file are you talking about?
function Trig_empty_player_slots_Func001Func001C takes nothing returns boolean return true
endfunction
function Trig_empty_player_slots_Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=10
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if(Trig_empty_player_slots_Func001Func001C())then
set udg_booleans03[GetForLoopIndexA()]=true
else
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
function Trig_count_number_players_at_start_Func002C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func003C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func004C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func005C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func006C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func007C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func008C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Func009C takes nothing returns boolean return true
endfunction
function Trig_count_number_players_at_start_Actions takes nothing returns nothing
call TriggerSleepAction(0.25)
if(Trig_count_number_players_at_start_Func002C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func003C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func004C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func005C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func006C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func007C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func008C())then
set udg_integer02=(udg_integer02+1)
else
endif
if(Trig_count_number_players_at_start_Func009C())then
set udg_integer02=(udg_integer02+1)
else
endif
call DisableTrigger(GetTriggeringTrigger())
endfunction
i'd say just do that, make all the booleans that check player playing states to true, that way even if there is no player in that slot, it'll think there is
also I think I have posted two mini guides in two request topics to make saving and or setting exp to an amount... maybe I'll take them + combine for a small guide (that is sometimes working) on that =/
function Trig_empty_player_slots_Actions takes nothing returns nothing
local integer i=1
loop
exitwhen i>12
set udg_booleans03=true
i=i+1
endloop
call DisableTrigger(GetTriggeringTrigger())
endfunction
Delete ALL functions / function calls with "count_number_players_at_start" in them
Then, go to globals and change udg_integer02 to udg_integer02=12 or whichever number fits
i'd say just do that, make all the booleans that check player playing states to true, that way even if there is no player in that slot, it'll think there is