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
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Fri May 31, 2002 3:27 am   

Trade Wars script Question
 
ok I got what I want working, my question, is there a way to make this one script instead of 3 different triggers?
#TRIGGER {Deployed Fighters Reports Sector (%d)} {m %1;#sendp y} this one is set newline and prompt

then the server will send one of the next 2 messeges depending on if the person who just entered the sector killed the fighter there.

#TRIGGER {All systems ready, shall we engage?} {#SENDP y} this is set to prompt
or
#TRIGGER {Do you want to make this jump blind?} {#SENDP n} also set to prompt

this all works fine but I am new here and I would think there is a way to make this a single script rather than 3 separate triggers?
does anybody have any examples of other trade wars scripts and or triggers?
anything would help me out at this point as the language is so new to me and all the examples here are for Mudd games.
thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri May 31, 2002 7:49 am   
 
You have 3 good triggers that work well and are easy to understand. It would be best to leave them as is. Combining them will require additional processing and make them harder to understand.

LightBulb
Vague questions get vague answers
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Fri May 31, 2002 3:43 pm   
 
ok, thanks lightbulb
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Fri Jun 28, 2002 9:29 pm   
 
Im not really sure what I need here so I will explain it and hopefully someone can tell me or show me what I need. when running a robot I need to be on 247. the trade wars game server (twgs) sends you a activity timeout messege every 5 min and you need to hit a key or move to stay online. So I made this trigger
#TRIGGER {INACTIVITY WARNING} {d}
this just re-displays the sector and keeps me online and it works great
A game that I am currently playing does not send the warning and after some time it disconects you. so what I need is a triggerless trigger?
something that automaticaly redisplays every 5 min. any idea's?
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Fri Jun 28, 2002 10:46 pm   
 
If it will just be sitting at the main prompt then a simple alarm will do.

#ALARM {*4:30} {d}

That would do every 4 minutes and 30 seconds. Why wait until the last second I say.

If your script is doing other things then you would simply want to turn that off. As 'd' is used for other things in other menus and not all are completely healthy.

Many times a simple CR is all it takes to overcome those activity timers. The command used would be "#SENDP %cr". That should work whether you are on a planet, in the stardock, or checking out the ship catalog.
Reply with quote
lewdpotato
Novice


Joined: 16 May 2002
Posts: 48
Location: USA

PostPosted: Sat Jun 29, 2002 4:39 am   
 
Thank you very much.
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