how to add a gold/lumber cheat trigger

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
risker
Forum Staff
Posts: 351
Joined: June 8th, 2008, 3:05 am
Location: Australia

Re: how to?

Post by risker »

His talking about space bar not a letter isn't he?
Kryptonyte wrote:
matchai wrote: he also said that in a map u press <space>x5 outside of chat and it gives lumber
Um.. you could make a variable for Red... (In GUI, it'd be the easiest for him...)
Then make a trigger for a hot-key... when Red enters the hot-key, it gives the variable (Which would be an integer)
+1, when it reaches +5, give player (Whoever...) +5000 lumber/gold/whatever you want, and set the variable back to 0.
So it could be done over and over...
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: how to?

Post by initialD »

hm...
I saw that trigger he mentioned before.
It's just a few spaces in the chat.
So easy anyone here can do it with GUI or JASS.
Anyway, here it is:

Code: Select all

globals
trigger FaI=CreateTrigger()
endglobals
function GGGCHT takes nothing returns nothing
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)+5000)
call SetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)+5000)
endfunction
function main takes nothing returns nothing
call TriggerRegisterPlayerChatEvent(FaI,Player(0),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(1),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(2),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(3),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(4),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(5),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(6),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(7),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(8),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(9),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(10),"       ",true)
call TriggerRegisterPlayerChatEvent(FaI,Player(11),"       ",true)
call TriggerAddAction(FaI,function GGGCHT)
endfunction
in chat string, 7x spaces will give you 5000 gold and 5000 lumber
it's just simple JASS, good luck have fun...
mickaboy72
Member
Posts: 91
Joined: June 12th, 2008, 2:04 am

Re: how to add a gold/lumber cheat trigger

Post by mickaboy72 »

woah that's is what i meant when you put in chat

thanks for the trigger
Image Image Image
Spoiler:
Image