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
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Tue Aug 13, 2002 7:36 pm   

NEWBIE: Needs help with SWR codebase triggers
 
Okay... Im really new to zmud so ... i need alot of help }:( ... fair warnign to you these triggers are very simple.

this is what i use ... but it doesn't work very well at all.... its just simply word pattern matching i use multiple triggers on patterns on the muds main window ... i am needing a trigger that brings me back and forth between planets landing and launching in a continuous loop..... these are all seperate triggers.

Trigger #1
Hyperspace course set. Ready for the jump to lightspeed.
hyperspace
NOTE:

Trigger #2
Your mobile suit lurches slightly as it comes out of hyperspace.
radar
NOTE: this triggers the command radar which sees one of two things that are there... and automatically sets course for them and flys to them until it gets the proximity alerts.. Example:
the radar triggers fries and it sees this colony/planet
Colony M9 -50000 -35600 -15600
and it automatically does course -50000 -35600 -15600
if it sees
Colony L3 80000 60000 -20000
it automatically does course 80000 60000 -20000

Trigger #3
Proximity alert: Colony M9 -50000 -35600 -15600
land m9
#WA 44000
calc l3 80000 60000 -19600
NOTE:
what calc l3 80000 60000 -19600 IS its sending it to colony L3 which triggers the earlier hyperspace trigger ... the wait on it seems random so sometimes it hasn't left the platform yet and the trigger fails here... i don't know how to do it so it knows which course to set though so i can't use the leaving platform... butthe text the game has for when it leaves the platform...
The ship leaves the platform far behind as it flies into space.

Trigger #4
You feel a slight thud as the ship sets down on the ground.
Launch
NOTE: this is the command i use to launch the ship ... this happens in between the proximity aleart stuff ... thats why i need a #WA because it takes time to leave the planet/colony.

Trigger #5
Proximity alert: Colony L3 80000 60000 -20000
land l3
#WA 44000
calc l1 -50000 -35600 -15200
NOTE: this is exactly like the preivious proximity alert for M9


thats all my triggers... i know this may seem like a bad attempt at doing this... i would very much like to not use the %WA command... if possible... but i don't know how to do it ... i don't use any alises or variables or classes or anything... if someone could help me... id very much appreciate it.
what id like to accomplish is having a trigger that would send me back and forth between the planets and landing on them launching and repeating the process over and over.... its to help me train my piloting skills... please... i need some help with this...
thank your for your time.

Darvenger
Reply with quote
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Wed Aug 14, 2002 6:33 pm   
 
Forgive me for replying to my own topic/request but... Is no one here able to help me with this? ... I tried to be as specific as possible about my triggers and the system in the game... if anyone can help me... please post to the forum since my e-mail no longer works right... }:( .. Hmm thank you for your time.

Darvenger
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Aug 14, 2002 7:03 pm   
 
I was just getting to it.
If I understood your post correctly, the sequence of commands is:
calc colony/planet
hyperspace (goes to destination set by calc)
radar
land colony/planet
launch

Also, if I understood correctly, you want to go from M9 to L3, and from L3 to L1.

#TR {Hyperspace course set. Ready for the jump to lightspeed.} {hyperspace}//no change
#TR {Your mobile suit lurches slightly as it comes out of hyperspace.} {radar}//no change
#TR {Proximity alert: Colony M9 -50000 -35600 -15600} {land m9;#VAR destination {l3 80000 60000 -19600}}
#TR {You feel a slight thud as the ship sets down on the ground.} (launch}
#TR {The ship leaves the platform far behind as it flies into space.} {calc @destination}
#TR {Proximity alert: Colony L3 80000 60000 -20000} {land l3;#VAR destination {l1 -50000 -35600 -15200}}
;Comments in blue

LightBulb
Senior Member
Reply with quote
Darvenger
Newbie


Joined: 13 Aug 2002
Posts: 7

PostPosted: Wed Aug 14, 2002 9:55 pm   
 
okay that looks greats ! thanks for yoru time... but there is one things missing from the trigger.. after i get out of hyperspace and do the radar .... it suposed to automatically set course for the colony with for example i just got out of hyperspace in the M9 sector the trigger would read this after the radar triggers Colony M9 -50000 -35600 -15600
and then the trigger would send this command in course -50000 -35600 -15600

that would set the course ... this has got to be done before it can get the proximity alert for the colony to land on... thats the only things i see missing... also... sometimes when the proximity alert for the colony comes up... the platform for landing may still be too far away... so i won't be able to land... and in this case would make the trigger you wrote for me... fall unless you added in a delay or something to try to land again at that colony... the text it says each time it fails to land sometimes ... when you get the proximity alert trigger is...

The platform is still to far away to land.
if you can figure out how to add these two things in to that trigger... id be eternally grateful... thank you Lightbulb... for your help... this will help me greatly if you can manage to add those two things in.

Darvenger
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Aug 15, 2002 12:43 am   
 
You said the radar command did that automatically.
quote:
NOTE: this triggers the command radar which sees one of two things that are there... and automatically sets course for them and flys to them until it gets the proximity alerts..

Anyway, here's a couple more triggers to handle those problems.
#TR {^Colony (%a): (%n) (%n) (%n)} {course %2 %3 %4}
#TR {The platform is still to far away to land.} {#ALA +5 {land}}

LightBulb
Senior Member
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