[REQUEST]Making The Black Road single Player

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Post Reply
Choad
Newcomer
Posts: 8
Joined: February 14th, 2007, 5:27 am

[REQUEST]Making The Black Road single Player

Post by Choad »

function Trig_empty_player_slots_Func001Func001C takes nothing returns boolean
if(not(GetPlayerSlotState(ConvertedPlayer(GetForLoopIndexA()))==PLAYER_SLOT_STATE_EMPTY))then
return false
endif
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

endfunction

function Trig_count_number_players_at_start_Func002C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(0))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func003C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(1))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func004C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(2))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func005C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(3))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func006C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(4))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func007C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(5))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func008C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(6))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
return true
endfunction

function Trig_count_number_players_at_start_Func009C takes nothing returns boolean
if(not(GetPlayerSlotState(Player(7))==PLAYER_SLOT_STATE_PLAYING))then
return false
endif
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 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 :P

ty in advance

here is the link to the triggers, but in text file.
http://www.sendspace.com/file/63tl23
User avatar
Dekar
Forum Drunk
Posts: 2889
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany
Contact:

Post by Dekar »

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
Choad
Newcomer
Posts: 8
Joined: February 14th, 2007, 5:27 am

Post by Choad »

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?
User avatar
Dekar
Forum Drunk
Posts: 2889
Joined: January 17th, 2007, 4:22 pm
Location: Darmstadt, Germany
Contact:

Post by Dekar »

http://forum.wc3edit.net/viewtopic.php?t=43
google for ultra compare, its a program
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
figureouturself
Junior Member
Posts: 26
Joined: May 1st, 2007, 8:35 am

Re: [REQUEST]Making The Black Road single Player

Post by figureouturself »

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
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Post by Xantan »

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 =/
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Re: [REQUEST]Making The Black Road single Player

Post by Aero »

It's even easier

figureouturself wrote:
function Trig_empty_player_slots_Actions takes nothing returns nothing
local integer i=1
loop
exitwhen i>12
set udg_booleans03[i]=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


That should be all there is to it...
Post Reply