Staredit Network

Staredit Network -> UMS Assistance -> Create Units For Players
Report, edit, etc...Posted by Screwed on 2004-08-17 at 06:24:46
Question:

Everyone, I've had this problem for ages. When you create units to a force.. it spits out more units than you want. And when you give them to multiple players that have been ticked ... i think the same things happen. How do you prevent that?

Say..

Players:
Player 1
Player 2
Player 3

Conditions:
Always

Actions:
Create 1 unit for player 6 (non related to checked players)

and say player 1 and 2 is in the game, my experience is that instead of creating 1 unit for player 6, it creates 2 ... anyway to stop it?

And also.. does it still give multiple units if the action is
Create 1 unit for current player instead a specific player like "player 6" ?

Question 2:
When you give units to players.. for example player 2, when player 2 is not in the game from the start, the units will be created and tend to attack all players. Is it possible to stop that?
Report, edit, etc...Posted by Kenoli on 2004-08-17 at 07:37:26
You have it set for 3 different players, so its actually 3 different triggers. If 2 of those players are int he game it will go off 2 times, and will end up making 2 units.
You need to set it for only 1 player to fix it, or make a trigger that kills the extra ones.

QUOTE
When you give units to players.. for example player 2, when player 2 is not in the game from the start, the units will be created and tend to attack all players. Is it possible to stop that?

if the trigger is for player 2, and player 2 is not in the game, the trigger wont work
Report, edit, etc...Posted by PickleWeezle(U) on 2004-08-17 at 09:27:54
That's only part of the solution, you still need to account for the bug of creating units for a player when the trigger is involving a different one.

For example (I'll use a Force example since you're having trouble with that.)... You need to check off each player creating the units. Instead of having Force 1 which involves P1-P3, you need to check off P1 P2 and P3 to have the create units function correctly. Do this instead of just having Force 1 checked off.

This was worded terribly, but I hope it helps.

In your problem, all you need to do is check off P6 also. This should fix.
Report, edit, etc...Posted by LegacyWeapon on 2004-08-17 at 14:19:41
couldnt you check off the computer player then create for 'force 1' having force 1 as the humans so that would make 1 for each player?

or could you have each player have his/her own trigger so give p1 a trigger create for self, p2 a trigger create for self,... wouldnt that work?
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-17 at 16:10:34
QUOTE(PickleWeezle(U) @ Aug 17 2004, 08:27 AM)
That's only part of the solution, you still need to account for the bug of creating units for a player when the trigger is involving a different one.

For example (I'll use a Force example since you're having trouble with that.)... You need to check off each player creating the units. Instead of having Force 1 which involves P1-P3, you need to check off P1 P2 and P3 to have the create units function correctly. Do this instead of just having Force 1 checked off.

This was worded terribly, but I hope it helps.

In your problem, all you need to do is check off P6 also. This should fix. 


Your an idiot Pickle
Just the fact that you think it is a bug disturbs me. On top of that checking players 1-3 is NO differant than haveing it owned by the force. I don't think you had a single correct statement in your whole post.

The trigger create extra units because people don't realize it is more than one trigger. Damn i can't figure out a way to make this understandable to people. WHY WON'T YOU PEOPLE GET IT?
Report, edit, etc...Posted by LegacyWeapon on 2004-08-17 at 16:48:28
so can you explain it, or was i right?
Report, edit, etc...Posted by Nozomu on 2004-08-17 at 16:50:48
I get it Bolt, if it makes you feel any better.
Report, edit, etc...Posted by Screwed on 2004-08-18 at 00:28:03
Can i ask something else?
If you check a box which is a force (Player 1,2,3) that involves more than one player, it will be displayed as one trigger in the trigger section under the force.

How many units will actually appear (counting all players) ?

Is it 9 in total? (3x3 - 3 units created each time and repeated 3 times because it is under a 3 player force?)
Report, edit, etc...Posted by Roaring Emu on 2004-08-18 at 01:23:55
ya wouldn't just selecting the force just stop that? Instead of just selecting them all?
Report, edit, etc...Posted by Screwed on 2004-08-18 at 02:44:27
QUOTE(Roaring Emu @ Aug 18 2004, 12:23 AM)
ya wouldn't just selecting the force just stop that? Instead of just selecting them all?

can you rephrase this? ..
Report, edit, etc...Posted by Battleaxe3 on 2004-08-18 at 03:00:48
Instead of using 3 players... just use player 6 for that, and yes saying current player instead of player 6 will still give 3 units (1 for p1, p2, p3) its just that the those players will own them instead of player 6.
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-18 at 03:36:17
QUOTE(Screwed @ Aug 17 2004, 11:28 PM)
Can i ask something else?
If you check a box which is a force (Player 1,2,3) that involves more than one player, it will be displayed as one trigger in the trigger section under the force.

How many units will actually appear (counting all players) ?

Is it 9 in total? (3x3 - 3 units created each time and repeated 3 times because it is under a 3 player force?)

If you have a force selected then it is possible that trigger can run once for each of those players.

If your trigger is …

Force 1
Conditions:
-Current player brings at least one men to locaiton
Actions:
-Create one dude for current player

Then that trigger has the chance of firing for every player in that force. But they can fire at separate times. For an example if player 1 brings a unit to the location he will have his dude created. But if player 2 shows up at the same location 5 hours later then the trigger will fire for him. This is because the trigger IS NOT one trigger. It is a copy of that trigger for every player within that force. Player 2’s trigger isn’t true when player 1 goes there.

Now if you look at a slightly different trigger like the following you will have massively different results.

Force 1
Conditions:
-Player 1 brings at least one men to location
Actions:
-Create one dude for player one

When player 1 brings his unit to the location of course player one's trigger will fire. But a copy of the trigger is also owned by all the rest of the players in the force. So even though player 2 is not referenced in the conditions or actions, the condition of "Player 1 brings at least one men to location" is still true when player 2 checks the trigger. So player 2's trigger will create another unit for player 1. This will continue for every player in that force (if there present in the game).

Then things can get slightly more complicated when you change a few more things.

Force 1
Conditions:
-Player 1 brings at least one men to location
Actions:
-Remove all men owned by player 1 at location
-Create one dude for player one

Now this trigger is quite a bit different and would have weird results if you don't know what is happening. First time player 1 brings a unit to the location the trigger is true so his dude is removed and he gets another one created by the actions. BUT since the unit that set off the trigger is removed by the actions of that same trigger the next player will not be able to fire there copy of the trigger. In another words when player 2 checks his trigger player 1's unit was already removed and the conditions are no longer true.

Yet even more weird, when player 1 returns to the beacon again it will seem as if his trigger went off again. Because, even though it isn't even preserved, Player 2's trigger will finally have true conditions and carry out the actions.


These kinds of effects are hard to see at first but realizing what the trigger actually is 95% of the challenge. If a trigger is owned by multiple triggers pretend it is a copy of that trigger owned by each player in that group (because it is).

Of course you all will read this and ignore what I have said and bring up the same topic again next week, so I don’t know why I even bother. I don’t know if people don’t believe me or if they don’t understand.
Report, edit, etc...Posted by Screwed on 2004-08-18 at 03:54:59
Thanks Everyone who helped me !! ^__^ Big Hug!
I unnderstand now .. THANK YOU!!
Report, edit, etc...Posted by (U)Bolt_Head on 2004-08-18 at 04:06:15
Sweet, i feel like i have acomplished something, ^__^ Big Hug Back!
Next Page (1)