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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top