gold/lumber cheats

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

thexkillerx
Newcomer
Posts: 6
Joined: February 17th, 2007, 8:34 am

gold/lumber cheats

Post by thexkillerx »

Sry, if that question already is written anywhere but i was to stupid to find it and i dont really know how this stuff here works so i ask:

I added a gold cheat to a map, that gives 100 gold for a code which you type in in-game, if I want now gold AND lumber cheat do i have to make another trigger which isnt called like here

Code: Select all

http://forum.wc3edit.net/viewtopic.php?t=21


"blubb", can i make another trigger with the same writing as in the link with the trigger name "blabb"? or can i make that thing in the same trigger so it gives me 1k lumber for typing the code one time in-game??
if yes, please tell me how...

ty
greetings thexkillerx
Eating or not eating - that's the question

Shakespeare
patroum
Newcomer
Posts: 3
Joined: February 15th, 2007, 1:32 pm

Post by patroum »

Just do the same thing, replace all the blubb by blabb and replace with this one of the part, the only thing that change is player state ressource lumber

Code: Select all

function Trig_blubb_Actions takes nothing returns nothing
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(), PLAYER_STATE_RESOURCE_LUMBER )
endfunction
thexkillerx
Newcomer
Posts: 6
Joined: February 17th, 2007, 8:34 am

ty

Post by thexkillerx »

y k that was what i wanted to know

ty

greetings
Eating or not eating - that's the question

Shakespeare
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

If you want BOTH gold and lumber from that ONE cheat just do this...

Code: Select all

function Trig_blubb_Actions takes nothing returns nothing 
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER )
    call AdjustPlayerStateBJ( 1000, GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD )
endfunction