Staredit Network

Staredit Network -> UMS Assistance -> Taking time to create units
Report, edit, etc...Posted by re_casper on 2005-01-31 at 20:12:51
I have an rp map where u pick a character. Then there is a "movie". After the movie, then you start.

Is it something like this?

Trigger#1

Condition:
"Player" brings 1 "selector" to location "pick #1 unit"

Actions:
Set switch #1

Trigger#2

Condition:
"Player" brings 1"selector" to location "pick #2unit"

Actions:
Set switch #2

---then the movie---

Condition:
"Computer" brings 1 "Ship" to location "create units"

Action:
clear switch #1
clear switch #2

Trigger #2

Condition:
Switch#1 is cleared
Switch#2 is cleared

Action:
Create #1 unit.
Create #2 unit.

Can you plz tell me anything wrong wit this?
I kno there is something wrong wit this ranting.gif
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-31 at 20:19:30
Try creating the unit for player 12 when they "select it" then give men owned by Player 12 to Player 1 after the movie.
Report, edit, etc...Posted by Kow on 2005-01-31 at 20:24:51
I've also heard that toggleing is a 'no-no'... but I've never had problems with them. Give death counters a try...
Report, edit, etc...Posted by DT_Battlekruser on 2005-01-31 at 20:26:40
Toggling works fine. One problem; there is no condition "switch is toggled"

Toggling a switch reverses its value.
Report, edit, etc...Posted by re_casper on 2005-01-31 at 21:02:30
QUOTE
I've also heard that toggleing is a 'no-no'... but I've never had problems with them. Give death counters a try...


Then it would be like:

Trigger#1

Condition:
"Player" brings 1 "selector" to location "pick #1 unit"

Actions:
Set "Computer" set to 1 death of "unused #1"

Trigger#2

Condition:
"Player" brings 1"selector" to location "pick #2unit"

Actions:
Set "Computer" set to 1 death of "unused #2"

---then the movie---

Condition:
"Computer" brings 1 "Ship" to location "create units"

Action:
"Computer" Add 1 death of "unused #1"
"Computer" Add 1 death of "unused #2"
Trigger #2

Condition:
"Computer" has lost 2 "unused #2"
Computer has lost 2 unused #1

Action:
Create #1 unit.
Create #2 unit.
Report, edit, etc...Posted by chuiu on 2005-01-31 at 21:11:00
Hmm ... can you explain what is happenening in the map? Your triggers dont say a lot about what you're doing (trigger wise), it only tells me what you want to do.

Like for instance ... why isn't there any other condition to prevent the 2 units from being made right away? If that is the trigger, the units will be created before the player even brings 1 men anywhere.
Report, edit, etc...Posted by re_casper on 2005-01-31 at 21:21:27
I want to create units but not right away.
So it would be something like:

1. People choose their units.
2. They watch the "Movie"
3. Then at the end of the move, a wraith moves into a location, create the units that they chose above.
Report, edit, etc...Posted by chuiu on 2005-01-31 at 21:29:00
You're confusing me now. The triggers you posted makes it look like you are creating the units right away because switches initially start cleared and you have a trigger to create units when the switches are cleared.

Have you actually used the triggers and are encountering problems or did you just post them and ask us to see if they would work or did you do half of both?

Why don't you try something like:

Conditions:
Current Player brings at least 1 men to "unit 1".
Current Player has suffered exactly 0 deaths of "unit 1".

Actions:
Set deaths for Current Player: Add 1 for "unit 1".
Create 1 "unit 1" for Computer at location "elsewhere".

And for the other unit(s) do the same.

Then play the movie, and when the player brings wraith to the location:

Conditions:
Computer brings at least 1 Wraith to "spawn men now".
Current Player has suffered at least 1 deaths of "unit 1".

Actions:
Give 1 men owned by Computer to Current Player.

And for the other unit(s) do the same.
------------------------------------------------------------------------

You can use less triggers and do it faster if you make a location for the men and create the men there when the player brings his unit to get them (before the movie). Then simply teleport all those units for the player to that location untill the wraith has moved to it's location to signal the end of the movie.
Report, edit, etc...Posted by re_casper on 2005-01-31 at 21:32:10
I never tried them but I can see there is a problem that is why i wanted to post it up. thx
Report, edit, etc...Posted by chuiu on 2005-01-31 at 21:37:29
Ok, read my post.
Report, edit, etc...Posted by sckor on 2005-02-02 at 06:54:39
QUOTE(idsa @ Feb 1 2005, 11:21 AM)
I want to create units but not right away.
So it would be something like:

1. People choose their units.
2. They watch the "Movie"
3. Then at the end of the move, a wraith moves into a location, create the units that they chose above.
[right][snapback]136192[/snapback][/right]


Instead of death counts and all that.. you can do

Player brings atleast one selecter to "choose unit"
------------------------------------------------------
Remove "selecter" at "choose unit"
Create one "chosen unit" at "desolete area"
Preserve trigger (In case of multiple areas)

Then, to trigger the movie,

Force (Movie watchers/selectors)

Current players command at most 0 "selectors"
--------------------------------------------------------
Set death for player 1, add one to academy

Then, end to move with this additional action

Movie has ended
---------------------
Set death for player 1, add one to academy

Player one has sufffered atleast 2 deaths of academy
----------------------------------------------------------------
Move all units for all players from "Desolete Area" to "Beacon"
Set deaths for player one, subtract 2 to academy

hope that helps ! biggrin.gif
NO SWITCHES! biggrin.gif

Report, edit, etc...Posted by chuiu on 2005-02-02 at 10:50:22
Dude, wtf? He hasn't posted in two days, I think he got it already.
Report, edit, etc...Posted by DT_Battlekruser on 2005-02-02 at 10:50:47
I still think it would be better to create your units at the start location right away for a neutral or allied computer player then give them to the players after the movie.
Report, edit, etc...Posted by Rhiom on 2005-02-02 at 12:17:03
----------------------------------------------------------------------------------------------------------------
Couldnt you just give the units the player selected to a nuetrul comp, or even an enemy one, in a pen of some sort for each player. then when the movie ends just give the player back his/her units.
----------------------------------------------------------------------------------------------------------------
Report, edit, etc...Posted by (U)Bolt_Head on 2005-02-02 at 15:38:59
QUOTE(Chu @ Jan 31 2005, 08:11 PM)
Your triggers dont say a lot about what you're doing (trigger wise), it only tells me what you want to do.
[right][snapback]136184[/snapback][/right]


I was going to say the exact opposet. Posting the triggers DOESN'T give use an idea of what you WANT to do. It only tells us what you have done.

A person who understands triggers well will look at it know exactly what it is going to happen but unless you explain what you want or what it is doing wrong then theres nothing that can be said really.

This seems to be a common problem when asking for help. You will have a quesiton like "here is my trigger, what did i do wrong". And i look at the trigger and say "nothing the trigger does exactly what it was programed to do, what did you want it to do?"

Other than that i can just look at it and notice stupid things in the triggers. Like the last trigger listed, Will fire at the start of the game and i can guess that is unintended. This is just another one of my pet peaves. Like how idsa said "Is it something like this?" when talking about something really generic. Do people actually think there are magic triggers designed to specifically do certain functions. There are many differant ways to trigger alot of differant events. This is why the question "what is the trigger for _____" pisses me off. And How our tutorials are too specific for there own good, Because many times they teach people to copy triggers instead of how to understand them.

PS. Sorry i went off into a rant. And Also Chu, although i quoted you this reply isn't directed at you, other than the first sentance or two.
Report, edit, etc...Posted by chuiu on 2005-02-02 at 15:51:15
Bolt, when I look at triggers and am presented with the question "Whats wrong with them" I try to analyze them to see what the person wants to do, and not what he is doing. It is only then can I speculate the problem he might be having with the triggers. That is why I said that, I know exactly what is going to happen with those triggers, but he did leave out certain details (if any actually existed) that would have made them work correctly, or incorrectly based off of what he wanted them to do.

In other words, I try to skip that extra step you take to understand the problem so I can solve the problem faster. Sometimes It doesn't work.
Report, edit, etc...Posted by DT_Battlekruser on 2005-02-02 at 19:37:21
QUOTE(DT_Battlekruser @ Feb 2 2005, 07:50 AM)
I still think it would be better to create your units at the start location right away for a neutral or allied computer player then give them to the players after the movie.
[right][snapback]136996[/snapback][/right]



QUOTE(Rhiom @ Feb 2 2005, 09:17 AM)
----------------------------------------------------------------------------------------------------------------
Couldnt you just give the units the player selected to a nuetrul comp, or even an enemy one, in a  pen of some sort for each player. then when the movie ends just give the player back his/her units.
----------------------------------------------------------------------------------------------------------------
[right][snapback]137022[/snapback][/right]


dots.gif I said that. Does anyone like the suggestion?
Next Page (1)