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


Joined: 15 Jan 2002
Posts: 4
Location: USA

PostPosted: Thu Jan 17, 2002 3:44 am   

Need help with a Trigger
 
I just started this new MUD and at the beginning it allows you to ROLL to get your stats before you begin. I haven't done anything with Triggers before, and it's my first time using zMUD. You can roll as many times as you need to. Here's what it looks like

Str: ## Int: ## Wis: ## Dex: ## Con: ## Keep? (Y/N)

I looked around on the Zuggsoft site, and found something I thought would work, but it didn't. Here's what I tried.

Pattern:

Str~: &StrVar Int~: &IntVar Wis~: &WisVar Dex~: &DexVar Con~: &ConVar Keep~? ~(Y/N~)

Script:

#IF ((@StrVar>=15)&(@IntVar=22)&(@WisVar=19)&(@DexVar>=17)&(@ConVar>=13)) {Y} {N}

This trigger wouldn't catch the first time it was displayed, I'd always have to either type N or go to the Trigger folder and Right-Click | Execute. After it started going, it would continue going until it met a roll that had the requirements filled, but it wouldn't do Y that time, it would do Y the next time, like...

N
Str: 18 Int: 22 Wis: 19 Dex: 20 Con: 16 Keep? (Y/N)
Y
Str: 12 Int: 15 Wis: 11 Dex: 15 Con: 16 Keep? (Y/N)
Str: 05 Int: 12 Wis: 13 Dex: 03 Con: 04 Keep? (Y/N)

then I'd finish creating my character, and my stats would be...

STR 12(12), INT 15(15), WIS 11(11), DEX 15(15), CON 16(16)

Anyone know a way to fix this? Any/All help is greatly appreciated.
Reply with quote
Charbal
GURU


Joined: 15 Jun 2001
Posts: 654
Location: USA

PostPosted: Thu Jan 17, 2002 3:52 am   
 
Go to the options tab of the trigger and make sure Prompt is checked. Then zMUD won't wait for a linefeed before checking to see if the trigger matches.
Reply with quote
Kerdyk
Newbie


Joined: 15 Jan 2002
Posts: 4
Location: USA

PostPosted: Thu Jan 17, 2002 4:21 am   
 
Thanks! It appears to be working quite well. :)
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