Staredit Network

Staredit Network -> UMS Assistance -> Wait Trigger
Report, edit, etc...Posted by GgG-M.K.Russ. on 2005-04-03 at 14:57:26
I'm working on a map with Hyper Triggers where I want to put text, clear switch, move unit in the same trigger. The thing is, the switches clear and set like I want them, but the text won't show. Also, to repeat the action, things screw up. What I want to know is: When do I want to put "wait 0 milliseconds"? Before, after, or between which actions?
Report, edit, etc...Posted by Staredit.Net Essence on 2005-04-03 at 15:13:19
You don't put wait 0 milliseconds in with the trig to do hypers.

Tutorials Are your friend. smile.gif

http://www.staredit.net/index.php?tutorial=49
Report, edit, etc...Posted by Snipe on 2005-04-03 at 15:18:41
hypers r probly the easyest trigger to do

conditions
-always

Actions
-all waits
-leave 1 for preserve trigger
and copy trigg acouple times
Report, edit, etc...Posted by aE(Sniper) on 2005-04-03 at 15:24:32
i use hyper triggers to run things instantly like junkyard dog and bounds
Report, edit, etc...Posted by Snipe on 2005-04-03 at 15:36:44
yea but its used in like everything u dun see many ppl these days not use them

but i guess in some maps u don't but bounds u have to for it to be good
Report, edit, etc...Posted by GgG-M.K.Russ. on 2005-04-03 at 15:38:41
Maybe I said it wrong. In a map with hyper triggers I have the following problem:

In the action portion of a trigger, I put Display Message, Clear Switch.
The switch gets cleared, the messaged isn't displayed. I found that the way to fix that is to put wait 0 millisec after the msg, b4 the clear trigger. I want to know, is that right? And, for what others is that needed to be done.
Report, edit, etc...Posted by Tdnfthe1 on 2005-04-03 at 15:40:55
QUOTE(GgG-M.K.Russ. @ Apr 3 2005, 01:38 PM)
Maybe I said it wrong. In a map with hyper triggers I have the following problem:

In the action portion of a trigger, I put Display Message, Clear Switch.
The switch gets cleared, the messaged isn't displayed. I found that the way to fix that is to put wait 0 millisec after the msg, b4 the clear trigger. I want to know, is that right? And, for what others is that needed to be done.
[right][snapback]179587[/snapback][/right]

Post the map so we can inspect where you went wrong.
Report, edit, etc...Posted by Snipe on 2005-04-03 at 15:41:26
its not right try looking on Sen tutorials like hydra wrote

tutorials are your friend biggrin.gif
Report, edit, etc...Posted by Ultimo on 2005-04-03 at 15:48:45
Are you sure you displayed it for the right player? Show the trigger maybe?
Report, edit, etc...Posted by GgG-M.K.Russ. on 2005-04-03 at 16:08:35
This trigger won't display "Good Job!"

null
Trigger
Players:
¤ All Players
Conditions:
¤ Switch A Is Set
Actions:
¤ Display For Current Player: "Good Job!"
¤ Clear Switch A
¤ Set Switch B
¤ Preserve Trigger



This trigger WILL display "Good Job!"

null
Trigger
Players:
¤ All Players
Conditions:
¤ Switch A Is Set
Actions:
¤ Display For Current Player: "Good Job!"
¤ Wait 0 milliseconds
¤ Clear Switch A
¤ Set Switch B
¤ Preserve Trigger

Report, edit, etc...Posted by LegacyWeapon on 2005-04-03 at 16:23:21
They both should display text... The wait might actually kill it because of hypers.

The wait will display the text, check for any triggers with their conditions fulfilled and run them then finish the reset of the switch clearing.

I'm pretty sure something else is causing this text to not be displayed.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-04-04 at 11:49:46
Delete your hyper triggers and remake them.
Report, edit, etc...Posted by GgG-M.K.Russ. on 2005-04-04 at 16:00:26
QUOTE((U)Bolt_Head @ Apr 4 2005, 10:49 AM)
Delete your hyper triggers and remake them.
[right][snapback]180159[/snapback][/right]


Remake them? ok. Why could that be a factor?
Report, edit, etc...Posted by AqoTrooper on 2005-04-04 at 16:14:03
QUOTE(GgG-M.K.Russ. @ Apr 4 2005, 11:00 PM)
Remake them? ok. Why could that be a factor?
[right][snapback]180242[/snapback][/right]

Because they should be at the bottom of the triggers list.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-04-05 at 12:57:10
Yeah its called "this is what you do but i don't want to explain why" technique.
Report, edit, etc...Posted by Chronophobia on 2005-04-05 at 13:40:07
QUOTE(GgG-M.K.Russ. @ Apr 3 2005, 01:38 PM)
Maybe I said it wrong. In a map with hyper triggers I have the following problem:

In the action portion of a trigger, I put Display Message, Clear Switch.
The switch gets cleared, the messaged isn't displayed. I found that the way to fix that is to put wait 0 millisec after the msg, b4 the clear trigger. I want to know, is that right? And, for what others is that needed to be done.
[right][snapback]179587[/snapback][/right]


Don't forget Preserve trigger in the end if you want to repeat the display
Report, edit, etc...Posted by GgG-M.K.Russ. on 2005-04-05 at 22:11:53
QUOTE(Chronophobia @ Apr 5 2005, 12:40 PM)
Don't forget Preserve trigger in the end if you want to repeat the display
[right][snapback]180865[/snapback][/right]

I'm not a noob ranting.gif
biggrin.gif
Ok thx guys
Report, edit, etc...Posted by concienne on 2005-04-06 at 19:12:31
Also maybe try waiting a little time, like maybe 100 milliseconds, after diplaying text.. That MAY help, maybe.. also, is the "always diplay" box checked? and are you displaying subtitles in your game?
Report, edit, etc...Posted by Red2Blue on 2005-04-07 at 01:28:00
I wonder why so many people dislike using waits...

Waits are my best friends...

All you guys are into death. =)


Why would you remake your hyper triggers?

Couldn't you just press Copy 3 times?
Or maybe move them to the bottom of the trigger list manually?
Report, edit, etc...Posted by in_a_biskit on 2005-04-07 at 04:42:29
The reason it doesn't work is that your condition is for a switch to be set, and you clear it in the same trigger.

What happens in your first trigger is this:
The switch is set by some trigger.
The next player to check the trigger has their conditions met, so the trigger fires.
The text is displayed for that player only, and the switch is cleared.
When the other players check their trigger lists, the switch is cleared, so the trigger doesn't fire for them.

In your second trigger:
The switch is set by some trigger.
The next player to check the trigger has their conditions met, so the trigger fires.
The text is displayed for that player only, followed by a wait action.
This causes all the other triggers to be checked (while the wait occurs).
The other players also see that the switch is set, so also display text (and also wait).
The wait action finishes, and then the switch is cleared. It also happens to be cleared again by every other player, but this doesn't really matter.

The danger in your second trigger is that the wait action will be delayed if there are any other wait actions currently running, because any one player cannot have two wait actions running through each other. This will almost certainly mean that you will encounter a problem (such as the trigger not preserving properly) if you are using hypertriggers.

I would recommend that if you can, make the trigger apply only to those whom you want to see the message, rather than "all players".

As concienne said, make sure that "Always display" is checked (otherwise it will only show if the player has subtitles on)

QUOTE
I'm not a noob

So I'll let you decide what's best to do.
Report, edit, etc...Posted by (U)Bolt_Head on 2005-04-07 at 13:16:57
QUOTE(Red2Blue @ Apr 7 2005, 12:28 AM)
I wonder why so many people dislike using waits...

Waits are my best friends...

All you guys are into death. =)
Why would you remake your hyper triggers?

Couldn't you just press Copy 3 times?
Or maybe move them to the bottom of the trigger list manually?
[right][snapback]182169[/snapback][/right]


Because it easyer to tell people to remake them than to expect them to know how to move them to the bottom of the list manually.
Next Page (1)