About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Wed Nov 17, 2004 2:57 am   

trigger problem
 
OK here's my problem for the day.

I have a trigger.
@person leaves (%w).

this is what i want it to do.
I have two varibles @spinfo and @hunting

I am making a list variable for multiple signposts.
example: loth
west=aduck
east=hoplikemad

when the trigger fires it has to look at two things.
one, it needs to look at @hunting to see if it is even turned on.
two, it needs to look at @spinfo to decide which list variable it needs to use.

I hope makes since, if not, I'll try to clean it up.
Thanks
_________________
Yama
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Wed Nov 17, 2004 6:49 pm   
 
Is there anyway to do it that once the trigger fires it keeps it from firing until it gets another spinfo the game?
_________________
Yama
Reply with quote
mortie
Wanderer


Joined: 26 Sep 2002
Posts: 73
Location: United Kingdom

PostPosted: Thu Nov 18, 2004 9:31 am   
 
Can you elaborate more on this? What info is contained in @spinfo? Perhaps give the code you already have so we can see what is going on?
Reply with quote
Yamabushi
Apprentice


Joined: 29 Jul 2003
Posts: 101
Location: USA

PostPosted: Thu Nov 18, 2004 5:11 pm   
 
OK.

spinfo will contain an abbrevated code for a waypoint that I have selected.
example West Gate of Bree = bre

the code will be using three things.
1. spinfo -to know what room i'm currently in.
2. hunting -set to either 1 or 0, 1 means i'm hunting, and the system needs to work.
3. ^@person leaves (%w) -records which direction they leave.

now, I have string lists with various aliases for different directions.
sample for bre
direction|alias
west -> abr1
east -> abr2
north -> abr3
south -> abr4

once it has done this, it will clear the spinfo, and wait for the next spinfo to appear

hope this helps.
_________________
Yama
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