Can you explain that 0 11 12 thing i really need to know.KangTooJee wrote:u make player 10 double... also u lack player 0 11 12Xirizo wrote:I have some problems.
I made custom cheat ..it's about press ESC and you get 325 gold.but first you type "-clear " to activate it.(only this doesnt contain anycheat pack.) What i did here is made triggers in GUI and covert it to Custom Text (Jass) and as i did in other maps i did in this one too put what i need to put under globals and so for endglobals.But when game starts and i activate cheats and press ESC i dont get anygold.
I tried first optimize war3.j then put cheats like in Hacorixo tutortail after than after that didnt work i puted first cheat pack and then optimized the whole map and that too didnt work.
Heres my cheat..I just wanted to say my skill creating custom cheats have proven usefull to other maps and it worked so many times,
GlobalsEndglobalsSpoiler:Code: Select all
// Generated trigger gg_trg_truyi = null trigger gg_trg_truyi2 = null trigger gg_trg_yumi = null trigger gg_trg_yami = null trigger gg_trg_yara = null trigger gg_trg_yiru = null trigger gg_trg_yori = null trigger gg_trg_yera = null trigger gg_trg_yare = null trigger gg_trg_yarr = null trigger gg_trg_yurr = null trigger gg_trg_ycui = null trigger gg_trg_truyi3 = null trigger gg_trg_truyi4 = null trigger gg_trg_truyi5 = null trigger gg_trg_truyi6 = null trigger gg_trg_truyi7 = null trigger gg_trg_truyi8 = null trigger gg_trg_truyi9 = null trigger gg_trg_truyi0 = null
I just want to know why this my Custom cheat didnt worked in dota but in others map i test did?(BTW in others map i used difrent custom cheat not this one.)Spoiler:Code: Select all
function InitGlobals takes nothing returns nothing endfunction function Trig_truyi_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yumi ) endfunction //=========================================================================== function InitTrig_truyi takes nothing returns nothing set gg_trg_truyi = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi, Player(1), "-clear ", true ) call TriggerAddAction( gg_trg_truyi, function Trig_truyi_Actions ) endfunction //=========================================================================== // Trigger: truyi2 //=========================================================================== function Trig_truyi2_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yami ) endfunction //=========================================================================== function InitTrig_truyi2 takes nothing returns nothing set gg_trg_truyi2 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi2, Player(2), "-clear ", true ) call TriggerAddAction( gg_trg_truyi2, function Trig_truyi2_Actions ) endfunction //=========================================================================== // Trigger: yumi //=========================================================================== function Trig_yumi_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(1), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yumi takes nothing returns nothing set gg_trg_yumi = CreateTrigger( ) call DisableTrigger( gg_trg_yumi ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yumi, Player(1) ) call TriggerAddAction( gg_trg_yumi, function Trig_yumi_Actions ) endfunction //=========================================================================== // Trigger: yami //=========================================================================== function Trig_yami_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(2), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yami takes nothing returns nothing set gg_trg_yami = CreateTrigger( ) call DisableTrigger( gg_trg_yami ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yami, Player(2) ) call TriggerAddAction( gg_trg_yami, function Trig_yami_Actions ) endfunction //=========================================================================== // Trigger: yara //=========================================================================== function Trig_yara_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(3), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yara takes nothing returns nothing set gg_trg_yara = CreateTrigger( ) call DisableTrigger( gg_trg_yara ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yara, Player(3) ) call TriggerAddAction( gg_trg_yara, function Trig_yara_Actions ) endfunction //=========================================================================== // Trigger: yiru //=========================================================================== function Trig_yiru_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(4), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yiru takes nothing returns nothing set gg_trg_yiru = CreateTrigger( ) call DisableTrigger( gg_trg_yiru ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yiru, Player(4) ) call TriggerAddAction( gg_trg_yiru, function Trig_yiru_Actions ) endfunction //=========================================================================== // Trigger: yori //=========================================================================== function Trig_yori_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(5), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yori takes nothing returns nothing set gg_trg_yori = CreateTrigger( ) call DisableTrigger( gg_trg_yori ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yori, Player(5) ) call TriggerAddAction( gg_trg_yori, function Trig_yori_Actions ) endfunction //=========================================================================== // Trigger: yera //=========================================================================== function Trig_yera_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(7), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yera takes nothing returns nothing set gg_trg_yera = CreateTrigger( ) call DisableTrigger( gg_trg_yera ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yera, Player(7) ) call TriggerAddAction( gg_trg_yera, function Trig_yera_Actions ) endfunction //=========================================================================== // Trigger: yare //=========================================================================== function Trig_yare_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(8), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yare takes nothing returns nothing set gg_trg_yare = CreateTrigger( ) call DisableTrigger( gg_trg_yare ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yare, Player(8) ) call TriggerAddAction( gg_trg_yare, function Trig_yare_Actions ) endfunction //=========================================================================== // Trigger: yarr //=========================================================================== function Trig_yarr_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(9), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yarr takes nothing returns nothing set gg_trg_yarr = CreateTrigger( ) call DisableTrigger( gg_trg_yarr ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yarr, Player(9) ) call TriggerAddAction( gg_trg_yarr, function Trig_yarr_Actions ) endfunction //=========================================================================== // Trigger: yurr //=========================================================================== function Trig_yurr_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(10), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_yurr takes nothing returns nothing set gg_trg_yurr = CreateTrigger( ) call DisableTrigger( gg_trg_yurr ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_yurr, Player(10) ) call TriggerAddAction( gg_trg_yurr, function Trig_yurr_Actions ) endfunction //=========================================================================== // Trigger: ycui //=========================================================================== function Trig_ycui_Actions takes nothing returns nothing call AdjustPlayerStateBJ( 325, Player(11), PLAYER_STATE_RESOURCE_GOLD ) endfunction //=========================================================================== function InitTrig_ycui takes nothing returns nothing set gg_trg_ycui = CreateTrigger( ) call DisableTrigger( gg_trg_ycui ) call TriggerRegisterPlayerEventEndCinematic( gg_trg_ycui, Player(11) ) call TriggerAddAction( gg_trg_ycui, function Trig_ycui_Actions ) endfunction //=========================================================================== // Trigger: truyi3 //=========================================================================== function Trig_truyi3_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yara ) endfunction //=========================================================================== function InitTrig_truyi3 takes nothing returns nothing set gg_trg_truyi3 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi3, Player(3), "-clear ", true ) call TriggerAddAction( gg_trg_truyi3, function Trig_truyi3_Actions ) endfunction //=========================================================================== // Trigger: truyi4 //=========================================================================== function Trig_truyi4_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yiru ) endfunction //=========================================================================== function InitTrig_truyi4 takes nothing returns nothing set gg_trg_truyi4 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi4, Player(4), "-clear ", true ) call TriggerAddAction( gg_trg_truyi4, function Trig_truyi4_Actions ) endfunction //=========================================================================== // Trigger: truyi5 //=========================================================================== function Trig_truyi5_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yori ) endfunction //=========================================================================== function InitTrig_truyi5 takes nothing returns nothing set gg_trg_truyi5 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi5, Player(5), "-clear ", true ) call TriggerAddAction( gg_trg_truyi5, function Trig_truyi5_Actions ) endfunction //=========================================================================== // Trigger: truyi6 //=========================================================================== function Trig_truyi6_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yera ) endfunction //=========================================================================== function InitTrig_truyi6 takes nothing returns nothing set gg_trg_truyi6 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi6, Player(7), "-clear ", true ) call TriggerAddAction( gg_trg_truyi6, function Trig_truyi6_Actions ) endfunction //=========================================================================== // Trigger: truyi7 //=========================================================================== function Trig_truyi7_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yare ) endfunction //=========================================================================== function InitTrig_truyi7 takes nothing returns nothing set gg_trg_truyi7 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi7, Player(8), "-clear ", true ) call TriggerAddAction( gg_trg_truyi7, function Trig_truyi7_Actions ) endfunction //=========================================================================== // Trigger: truyi8 //=========================================================================== function Trig_truyi8_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yarr ) endfunction //=========================================================================== function InitTrig_truyi8 takes nothing returns nothing set gg_trg_truyi8 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi8, Player(9), "-clear ", true ) call TriggerAddAction( gg_trg_truyi8, function Trig_truyi8_Actions ) endfunction //=========================================================================== // Trigger: truyi9 //=========================================================================== function Trig_truyi9_Actions takes nothing returns nothing call EnableTrigger( gg_trg_yurr ) endfunction //=========================================================================== function InitTrig_truyi9 takes nothing returns nothing set gg_trg_truyi9 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi9, Player(10), "-clear ", true ) call TriggerAddAction( gg_trg_truyi9, function Trig_truyi9_Actions ) endfunction //=========================================================================== // Trigger: truyi0 //=========================================================================== function Trig_truyi0_Actions takes nothing returns nothing call EnableTrigger( gg_trg_ycui ) endfunction //=========================================================================== function InitTrig_truyi0 takes nothing returns nothing set gg_trg_truyi0 = CreateTrigger( ) call TriggerRegisterPlayerChatEvent( gg_trg_truyi0, Player(10), "-clear ", true ) call TriggerAddAction( gg_trg_truyi0, function Trig_truyi0_Actions ) endfunction function InitCustomTriggers takes nothing returns nothing call InitTrig_truyi( ) call InitTrig_truyi2( ) call InitTrig_yumi( ) call InitTrig_yami( ) call InitTrig_yara( ) call InitTrig_yiru( ) call InitTrig_yori( ) call InitTrig_yera( ) call InitTrig_yare( ) call InitTrig_yarr( ) call InitTrig_yurr( ) call InitTrig_ycui( ) call InitTrig_truyi3( ) call InitTrig_truyi4( ) call InitTrig_truyi5( ) call InitTrig_truyi6( ) call InitTrig_truyi7( ) call InitTrig_truyi8( ) call InitTrig_truyi9( ) call InitTrig_truyi0( ) endfunction
EDIT: nvm i got it