Warfare Incorporated :: View topic - Repeating Triggers
Warfare Incorporated Forum Index
 FAQ   Search   Memberlist   Usergroups 
 Profile   Log in to check your private messages   Log in 
 
Repeating Triggers

 
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring
View previous topic :: View next topic  
Author Message
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Fri Jun 11, 2004 5:32 am    Post subject: Repeating Triggers Reply with quote

Is it possible to make a trigger that repeats itself over and over?

Example: Unit group 1 spawns after 60 seconds elapsed game time
Respawns after 120 seconds
Respawns after 180 seconds

I know you can do this with multiple triggers, and can also use the "wait" effect for a delay, but can you just make one trigger, one condition, one effect, repeat forever?

Also, is there a way to "disable" a trigger?
Back to top
View user's profile Send private message
dws90
Very Active User


Joined: 03 Mar 2004
Posts: 118

PostPosted: Fri Jun 11, 2004 7:18 am    Post subject: Reply with quote

You can do something like this:

Spawn Unit Group 1 every 60 seconds
Preserve Trigger

That would spawn Group One every 60 second.

For what you seem to want to do:

Spawn Unit Group 1 Elapsed Time 60
Wait 60 seconds
Spawn Unit Group 1
Wait 60 Second
Spawn Unit Group 1


As for disabling triggers if you mean set them so they won't go off, the easiest way is with switches.
Back to top
View user's profile Send private message Send e-mail
PhillipEarl
Mega-Poster


Joined: 12 Jan 2004
Posts: 329
Location: Charlotte, NC

PostPosted: Fri Jun 11, 2004 7:45 am    Post subject: Re: Repeating Triggers Reply with quote

UGMC wrote:
Is it possible to make a trigger that repeats itself over and over?

Example: Unit group 1 spawns after 60 seconds elapsed game time
Respawns after 120 seconds
Respawns after 180 seconds


Create a mission loaded trigger for the appropriate side (or use the one you already have) - in actions select "Wait" and fill in 60 seconds. Do so again for 120 and 180 seconds, respectively.

Also, you might want to make sure you have the "rebuild if destroyed" box unchecked in Unit Group 1's pallette.

Quote:


I know you can do this with multiple triggers, and can also use the "wait" effect for a delay, but can you just make one trigger, one condition, one effect, repeat forever?

Also, is there a way to "disable" a trigger?


Create a switch. Call it "Trigger Disable" or whatever you feel is appropriate. At mission load, set the switch to "on." Now, in the conditions for the trigger, include a condition that requires that the switch be on. When you want to disable the trigger, simply turn the switch off.

Hope that helps! Smile
Back to top
View user's profile Send private message
PhillipEarl
Mega-Poster


Joined: 12 Jan 2004
Posts: 329
Location: Charlotte, NC

PostPosted: Fri Jun 11, 2004 7:46 am    Post subject: Reply with quote

dws90 wrote:
You can do something like this:

Spawn Unit Group 1 every 60 seconds
Preserve Trigger

That would spawn Group One every 60 second.

For what you seem to want to do:

Spawn Unit Group 1 Elapsed Time 60
Wait 60 seconds
Spawn Unit Group 1
Wait 60 Second
Spawn Unit Group 1


As for disabling triggers if you mean set them so they won't go off, the easiest way is with switches.


Laughing Guess we were posting at the same time! (I got distracted in the middle of mine)
Back to top
View user's profile Send private message
dws90
Very Active User


Joined: 03 Mar 2004
Posts: 118

PostPosted: Fri Jun 11, 2004 10:26 pm    Post subject: Reply with quote

Well, at least he knows the information is accurate Very Happy
Back to top
View user's profile Send private message Send e-mail
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Sat Jun 12, 2004 3:56 am    Post subject: Reply with quote

I'll fiddle around with switches some. Thanks!

But about the repeating triggers. That, I knew, but suppose your game is going to last about hours (not that it is, but theoretically), and there was no possible way to keep putting in those wait options. Or suppose you want to recieve galaxite periodically every 30 seconds of the game or so for as long as you live. I've seen it done, I just need to know how.

I bet I could do what I need with a series of timers... resetting it after every sixty seconds to be triggered off again. Thing is, I really am not good with timers...

Any other ideas?
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Sat Jun 12, 2004 10:48 am    Post subject: Reply with quote

There's a very simple way of doing this.

First, as they said, make a switch called "SpawnerActive" (or any name).
At beginning, set it to on.

Trigger 1:
Condition: Switch 'SpawnerActive' is on.
Condition: Every 60 seconds.
Action: Create unit group 'moo'.
Action: Preserve Trigger.

It will keep spawning while the 'SpawnerActive' switch is on. Turn it off when you need to.

And for the galaxite,
Condition: Every 30 seconds.
Action: Modify galaxite for Side1: Add 100 (or any number)
Action: Preserve trigger.

There's another way to do these. The following trigger will accomplish the same thing as trigger 1, but a different way.

Condition: Switch 'SpawnerActive' is on.
Action: Create unit group 'moo'.
Action: Wait 60 seconds.
Action: Preserve Trigger.

(See, I got rid of the "Every NN seconds" condition and replaced it with a "Wait" action.)

I hope this helps! Good luck with your maps.

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Sun Jun 13, 2004 5:47 am    Post subject: Reply with quote

Thank you! So the main thing is the 'preserve' action... I really don't even know half of what the conditions and actions do.
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Sun Jun 13, 2004 9:24 am    Post subject: Reply with quote

Which actions and conditions don't you understand?
_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Sun Jun 13, 2004 10:52 am    Post subject: Reply with quote

Various ones... nothing you need to worry about in particular. If I have a question, I'll post it.
Back to top
View user's profile Send private message
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Mon Jun 14, 2004 4:14 pm    Post subject: Reply with quote

I still have a question... my trigger isn't working.

Here it is.
Condition: Time elapsed exactly 25 seconds
Effect: Side 1's credits add 400
Effect: Preserve trigger

It just doesn't work. Am I missing something?
Back to top
View user's profile Send private message
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Mon Jun 14, 2004 5:59 pm    Post subject: Reply with quote

This will only work once: when time elapsed is exactly 25 seconds. After that, it is more than 25 seconds.

(BTW, it is Action, not effect Wink )

_________________
Why negotiate when you can just blow things up?
------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail
crakerz
Mega-Poster


Joined: 17 Sep 2003
Posts: 353
Location: California Bay Area

PostPosted: Mon Jun 14, 2004 6:01 pm    Post subject: Reply with quote

Verdagon wrote:
And for the galaxite,
Condition: Every 30 seconds.
Action: Modify galaxite for Side1: Add 100 (or any number)
Action: Preserve trigger.


Wow, I didn't know you could modify the galaxite! Must be in the special edition....

_________________
Why negotiate when you can just blow things up?
------------------------------------------------------
Back to top
View user's profile Send private message Send e-mail
UGMC
Mega-Poster


Joined: 03 Jun 2004
Posts: 348
Location: my own little world

PostPosted: Tue Jun 15, 2004 4:13 am    Post subject: Reply with quote

Yeah, last night I tried the trigger the other way around with the "Always" condition (although there was none, I just used at least one person is alive) and had the galaxite addition, wait, and preservation of the trigger all as actions. It worked that time.

The FAQ, however, states that the method I first used also works. Either I set it up wrong or the FAQ is wrong.
Back to top
View user's profile Send private message
Verdagon
Veteran Member


Joined: 05 Oct 2003
Posts: 1047
Location: San Luis Obispo, CA

PostPosted: Tue Jun 15, 2004 3:51 pm    Post subject: Reply with quote

Pretty sure the FAQ is right... it always worked for me.

And crakerz, i made a typo. The action isnt modify galaxite, its modify credits. It's impossible to add galaxite.

_________________
[WI Moderator]
http://verdagon.net/
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Warfare Incorporated Forum Index -> Mission Authoring All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2002 phpBB Group