Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: Sat Jan 14, 2006 10:04 pm   

Timer/Ticker Trigger issues
 
Hi,

I want to start a tick timer with a tick prompt from a trigger, and I need help in setting up a simple (sorta ) trigger/timer that does this :-

You load the cannon (switch on timer at 10 secs and set timer prompt to LIGHT FUSE)

When I see the text LIGHTFUSE, i want to run another trigger that will :-

strike match;set timer to 5 secs;set timer prompt to ignite;

When I see the text IGNITE, I want to run a trigger that sets match to fuse and kills the tick timer.

When I load the canon again, then it will start all again from scratch.

Any help would be great!
_________________
Coffee aint my cup of tea!
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Sun Jan 15, 2006 6:28 am   
 
Is this just a series of commands with time delays? If so then you can use alarms. Something like:

#TR {You load the cannon} {
#ALA +10 {strike match}
#ALA +15 {set match to fuse}
}

That will strike match 10 seconds after loading and set match 15 seconds after loading.
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: Sun Jan 15, 2006 7:27 pm   
 
Its not a series of time delay commands. Its in response to my and my team loading and firing cannons on our frigate! Cause one of may be loading the cannon, whilst the rest of will be either putting in the gun powder or lighting the fuse etc.

So I need to trigger on the responses, even though they are a sequence of sequential actions.

TK
_________________
Coffee aint my cup of tea!
Reply with quote
Dodgester
Wanderer


Joined: 17 Nov 2005
Posts: 65

PostPosted: Sun Jan 15, 2006 10:00 pm   
 
Sounds like the use of a multi-state trigger. I haven't used multi-state form of triggers, but that's what it sounds like you want to setup.

Sincerely,

Dodgester
Reply with quote
tommyketchup
Newbie


Joined: 24 Dec 2005
Posts: 6

PostPosted: Sun Jan 15, 2006 10:50 pm   
 
Is there no way of setting the tickprompt to something, and then when it hits zero, to show on the screen, so you can trigger to that?

As well as the ability to change the tick prompt via an alias or something?
TK
_________________
Coffee aint my cup of tea!
Reply with quote
Slaem
Apprentice


Joined: 20 Sep 2005
Posts: 135

PostPosted: Mon Jan 16, 2006 5:30 am   
 
#AL cannonson {#T+ CannonFire;cannonsoff;#PICK {p:Select your CF duty:} {o:1} {1, load cannon:#T+ 1} {2, strike match:#T+ 2} {3, ignite fuse:#T+ 3} {*4, ALL:CFall} {5, 1 and 2:CF12} {6, 1 and 3:CF13} {7, 2 and 3:CF23}}
#AL cannonsoff {#T- 1;#T- 2;#T- 3}
#CLASS CannonFire
#AL CF12 {#T+ 1;#T+ 2}
#AL CF13 {#T+ 1;#T+ 3}
#AL CF23 {#T+ 2;#T+ 3}
#AL CFall {#T+ 1;#T+ 2;#T+ 3}
#TR "1" {You load the cannon} {#ALA +10 {say LIGHT FUSE}} "" {disable}
#TR "2" {LIGHT FUSE} {strike match;#ALA +5 {IGNITE}} "" {case|disable}
#TR "3" {IGNITE} {set match to fuse} "" {case|disable}
#CLASS 0

untested
Something like that will prompt you for what your duties are and will only enable the appropriate triggers. You can manually enable them also. IMO, #ALARMs are what you'll want to use.

cannonson will make sure the class is open, the triggers are off, and then prompt for your duties to enable the needed trigs. I set it's default to all (press ESC to cancel).
cannonsoff will turn off all the trigs.
_________________
Show your love.
Support Zugg Software!
Donate to zugg@zuggsoft.com with PayPal Send Money.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
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

© 2009 Zugg Software. Hosted by Wolfpaw.net