Text doesn't say good team

niceone

New Member
Reaction score
3
Mine trigger wont work properly. there are 5 teams of 2 people when the income text come up there comes instead of, team 1)income, team2)income ,... there stays 1)income, 3)income 5)income, ... how to change the numbers in front of the income?

this is the trigger
Code:
Show income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 1, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 3 to 3, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 5 to 5, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 7 to 7, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 10 to 10, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))

can anyone help me :confused:
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
why do you use integer A like that?
it's not useful at all and besides your trigger answers it already alone: 1,3,5,7,10.... (much to wonder where they get the numbers from? :p )

anyway using integer A is to loop a number so you would run a multiple number action in one looped action like this:
Code:
Show income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 10 Do Actions
            Loop
                Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber)))
now you understand it better? :)
 

niceone

New Member
Reaction score
3
lol there are 5 teams but how u do there are 10 numbers displayed and that I want to have removed because I only want 5 :)
 

niceone

New Member
Reaction score
3
noooo when it loops from 1 till 5 it displays income from team 1 and 2 twice and from team 3 once and doesnt display other teams at all
 

niceone

New Member
Reaction score
3
its the same and this add the money to the team

Code:
Income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 11, do (Player - Add Income[(Integer A)] to (Player((Integer A))) Current gold)
        For each (Integer A) from 1 to 11, do (Player - Add IncomeLumber[(Integer A)] to (Player((Integer A))) Current lumber)
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Tip:
Why don't you rephrase your problem again since I don't quite get what Post #1 meant :p

EDIT:
Maybe you want it to say :
1) Income
2) Income
3) Income
etc.?
Well, since you already have multiple Actions anyway, just put 1,2,3,4,5 manually into them.
 

niceone

New Member
Reaction score
3
OK :)

1) mine trigger gives 1) 3) 5) 7) 10) (9 isn't used)
2) it must give team1) team2) team3) team4) team5)

edit* teams are player 1+2 / 3+4 / 5+6 / 7+8 / 10+11

and how to delete then the old numbers and add the new ones
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
.....I still don't get it.
So you want a trigger that gives Income to every player?
Won't the trigger in Post #7 do the thing?
Game-Text?
Explain the format, I still don't get what you want (can other user explain it to me too?)
 

niceone

New Member
Reaction score
3
.....I still don't get it.
So you want a trigger that gives Income to every player?
Won't the trigger in Post #7 do the thing?
Game-Text?
Explain the format, I still don't get what you want (can other user explain it to me too?)

its Team line tower so members on the same team get both the income and that income has to be displayed
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
Note: I've edited this thing heaps and idk where and w/e, i'm too tired you try make sense of it lol...

Uhh... Curse these small text boxes and squishing the text up! :nuts:

I think you need to make a player group variable with an array size of 5, assign player 1/2 to var[0] player 3/4 to var[1] and so on until var[4] then...

Edit (again):
And in another trigger
Code:
Event - Map Initialization
Conditions - W/E
Actions - 
Set var[0] = Player1 and Player2
Set var[1] = Player3 and Player4
Set var[2] = Player5 and Player6
Set var[3] = Player7 and Player8
Set var[4] = Player9 and Player10

Code:
Show income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 5, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Team: + var[Integer A]))) + )) + (((String(Income[(Player number (var[Integer A])]))) +  Gold & ) + ((String(var[IncomeLumber[(Integer A)]])) +  Lumber))))

Edit:
That exact code is wrong but the idea... The concept idk, what ever, just try make something like that and it should work.

Edit:

I think I know what he means, he wants it to display 5 messages, each message containing information for each team, there's 5 teams and 2 players in each team, so he wants the first message to show income and what not for player 1 and 2 (team 1), second message for player 3 and 4 (team 2) and so on... I'm kind of too tired to do it though lol.
 

niceone

New Member
Reaction score
3
Uhh... Curse these small text boxes and squishing the text up! :nuts:

Code:
Show income
    Events
        Time - Every 15.00 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to 2, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 3 to 4, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 5 to 6, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 7 to 8, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))
        For each (Integer A) from 9 to 10, do (Game - Display to (All players) for 6.00 seconds the text: (((String((Integer A))) + )) + (((String(Income[(Integer A)])) +  Gold & ) + ((String(IncomeLumber[(Integer A)])) +  Lumber))))

I think I know what he means, he wants it to display 5 messages, each message containing information for each team, there's 5 teams and 2 players in each team, so he wants the first message to show income and what not for player 1 and 2 (team 1), second message for player 3 and 4 (team 2) and so on... I'm kind of too tired to do it though lol.

not realy i want it like this:
team 1) income ??? Gold & ??? lumber
team 2) income ??? Gold & ??? lumber
team 3) income ??? Gold & ??? lumber
team 4) income ??? Gold & ??? lumber
team 5) income ??? Gold & ??? lumber
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
However, Choppa, what you did in that trigger was showing 10 Messages.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
not realy i want it like this:
team 1) income ??? Gold & ??? lumber
team 2) income ??? Gold & ??? lumber
team 3) income ??? Gold & ??? lumber
team 4) income ??? Gold & ??? lumber
team 5) income ??? Gold & ??? lumber

That's pretty much what I suggested but i've edited my post since then anyway.
 

darkRae

Ueki Fan (Ueki is watching you)
Reaction score
173
Does that mean Player1's Income + Player2's Income == Team1 Income?
Then you just need to sum them and show it in the message.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
niceone where are you from by the way?

When you say counted up do you mean added up or the income is chosen out of the highest income from that specific team?
 

niceone

New Member
Reaction score
3
lol im from holland so im not super good in english :p

thanks for ur help but a simple trigger saying it is more then saying 10 things without that i know where your talking about
 

Doom-Angel

Jass User (Just started using NewGen)
Reaction score
167
what i did displays for every player from 1 to 10 but you didn't say you wanted to use groups anyway i suggest you instead to make an array variable of type player group and put each team inside from 1 till 5 and then show by the teams players using loops to show the text you want
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top