Triggering for -income

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Triggering for -income

Post by hermit17 »

I created a tree tag map. so basically ent hav gold and lumber base on resources how do i make when someone types -income it show how much gold and lumber he has
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Triggering for -income

Post by Arabidnun »

Code: Select all

Income Trigger
    Events
        Player - Player 1 (Red) types a chat message containing -income as An exact match
        Player - Player 2 (Blue) types a chat message containing -income as An exact match
        Player - Player 3 (Teal) types a chat message containing -income as An exact match
        Player - Player 4 (Purple) types a chat message containing -income as An exact match
        Player - Player 5 (Yellow) types a chat message containing -income as An exact match
        Player - Player 6 (Orange) types a chat message containing -income as An exact match
        Player - Player 7 (Green) types a chat message containing -income as An exact match
        Player - Player 8 (Pink) types a chat message containing -income as An exact match
        Player - Player 9 (Gray) types a chat message containing -income as An exact match
        Player - Player 10 (Light Blue) types a chat message containing -income as An exact match
        Player - Player 11 (Dark Green) types a chat message containing -income as An exact match
        Player - Player 12 (Brown) types a chat message containing -income as An exact match
    Conditions
    Actions
        Game - Display to (Player group((Player((Player number of (Triggering player)))))) the text: ((|cff0000ffGold:|r  + (String(((Triggering player) Current gold)))) + (       |cff00f00fLumber:|r  + (String(((Triggering player) Current lumber)))))
Enjoy
hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Re: Triggering for -income

Post by hermit17 »

i am not talking bout how much lumber he has now i am talking bout how much lumber he receives each interval based on a variable. so how do i make ((String(Triggering Player)Variable))
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Triggering for -income

Post by Arabidnun »

Well, you have to have the trigger pre-set to designate how much income they get.

just do: The array variable

(String(((Income[Player number of(Triggering Player)])))))
hermit17
Junior Member
Posts: 43
Joined: November 30th, 2008, 2:28 am

Re: Triggering for -income

Post by hermit17 »

Thx a lot :D :D :D :D :D :D :D