- Joined
- Mar 17, 2007
- Messages
- 412
Solved Thanks
Last edited:
is pointing how many players that active when the game is started, that's why we call it a pointerSet Int_Pyrs_Active = (Int_Pyrs_Active + 1)
it's looping up to number that has been stored earlier in "Int_Pyrs_Active"For each (Integer Int_Pyrs_Unactive) from 1 to Int_Pyrs_Active, do (Actions)
If the owner of units that earlier were created has left the game, thenIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Pyr_Left slot status) Equal to Has left the game
Then - Actions
Set U_Footman[Int_Pyrs_Unactive] = U_Footman[Int_Pyrs_Active]
Set Int_Pyrs_Unactive = (Int_Pyrs_Unactive - 1)
Set Int_Pyrs_Active = (Int_Pyrs_Active - 1)
Else - Actions
to store the current number of Units that each player currently hasSet U_Footman[Int_Pyrs_Unactive] = U_Footman[Int_Pyrs_Active]
Set Int_Pyrs_Unactive = (Int_Pyrs_Unactive - 1)
Set Int_Pyrs_Active = (Int_Pyrs_Active - 1)
i'm not sure but, is the first trigger already run before this?Unit Group - Pick every unit in (Units of type (Unit-type of U_Footman[Int_Pyrs_Active])) and do (Actions)
Loop - Actions
i'm not sure but, is the first trigger already run before this?
if the first trigger is already run, then "Int_Pyrs_Active" equals to 10 and the units were already created which explain why it works
thisIt was a example of it being used, basically U_Footman[Int_Pyrs_Active] works for all players alive, at least it does for me, this is originally what I thought but people told me no it only points to 1 thing at a time - pointer - object blah blah so and so
The "Pick every units" thing you posted basicly loops through all units of the same type as the footmen stored in the array.
this
The "Pick every units" thing you posted basicly loops through all units of the same type on your map as the last footmen stored in the array.
All I can say is you should learn the basics of programming before moving on.
It's simple as that.
You can't explain someone a car if he doesn't know what wheels are.
It actually only retrieves the unit-type of the last unit stored in the U_Footman array. So you could also just make it loop through all footmen in the first place. That's why people suggest it does nothing, while in fact, it does something. The expression inside the group loop serves no real purpose, as you already know the unit type (which is a footman) and could just use that directly.It was a example of it being used, basically U_Footman[Int_Pyrs_Active] works for all players alive, at least it does for me, this is originally what I thought but people told me no it only points to 1 thing at a time - pointer - object blah blah so and so, it makes it frustrating while trying to learn something then people tell you otherwise which causes a complete mess.
Thats a unit array. Int_Pyrs_Active always returns the number of players active in the game. So U_Footman[Int_Pyrs_Active] will always return the last footman stored in the array.U_Footman[Int_Pyrs_Active] <--- What is this?
All this is wrong input data and will cause your map to not compile properly, as array variables always expect an integer index.U_Footman[All Players?] <--- This?
U_Footman[random player?] <--- This?
U_Footman[nothing?] <--- This?
U_Footman[player object?] <--- This? (makes no sense)
That's not just an assumption. You seem to be totally confused by the concept of loops and array variables, which are the most fundamental things in programming. You should read up on that on wikipedia first, so that you actually understand what you do.That was completely unnecessary don't judge me, and don't make assumptions I was asking to make sure I was on the right track because people from hiveworkshop tell me otherwise
Int_Pyrs_Active always returns the number of players active in the game.
So U_Footman[Int_Pyrs_Active] will always return the last footman stored in the array.
All this is wrong input data and will cause your map to not compile properly, as array variables always expect an integer index.
What you can do, however, is converting the player variable to an integer by getting the player ID of a player.
That's not just an assumption. You seem to be totally confused by the concept of loops and array variables, which are the most fundamental things in programming. You should read up on that on wikipedia first, so that you actually understand what you do.
I'm pretty sure you just misunderstood what they told you. Most people lurking in the Trigger help section and posting answers know what they are doing.Int_Pyrs_Active <--- My question was this the array as people said nothing is actually stored there when in fact I know something is because it works in game but people insist on telling me otherwise.
I think in GUI it's called "Player Index".I'm not sure how to get the "ID" of a player
I know what ADHS is, but I don't see how it will change anything. And also I don't see why people should give you different answers to logical problems just because you have ADHS?Actually it is an assumption because you don't know what I've been through already and you're right I was confused because I've already done the research then asked questions and received bad answers from people here at "hiveworkshop" as I pointed this out. You should read up on wikipedia about adhd because not everyone can learn like you.
you will understand how it works soon if you keep learning and practicing..
oh, by the way you are not allowed to delete the main problem in the first post.. just attach "solved" underneath the problem description, so it will not causes confusion when people googled this problem..
Seriously? You called out the people helping you in the other thread just because you didn't understand what they said. I guess that's much more of a bad attitude than some smart-ass remarks (wherever you could find them in my post).Zwiebelchen users like you make me avoid the forums with your smartass remarks yet you get away with it from by being partially helpful
ID is a common abbreviation for index or identity. It's used almost everywhere in life. And sorry for not giving you the correct takezandgoez-compatible term in the first place. -.-"Player Index" <--- I see, could of just said that instead of having me guess abbreviations
ADHS and ADHD are two names for the same thing."ADHS" <--- Not what I said
Dude, I do not know you. That's why I treat you in the same way as anyone else. You're think you're something special? Well, think again.An apple is still an apple <--- You literally haven't got the slightest clue -.-'
Easy... you are a nice guy remember?a bad attitude than some smart-ass remarks (wherever you could find them in my post).
I'll try nonetheless, since I'm a nice guy.
is not a nice thing to say..Zwiebelchen users like you make me avoid the forums with your smartass remarks yet you get away with it from by being partially helpful
he is right..Dude, I do not know you. That's why I treat you in the same way as anyone else. You're think you're something special? Well, think again.
His name is Zwiebelchen ! ! ! Why people can't read it
So, if short form then: "Zwie" , not "Zwei"!