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


Joined: 19 Sep 2004
Posts: 45
Location: Houston

PostPosted: Tue Jan 24, 2006 2:39 am   

Simple trigger
 
So I'm trying to make a simple trigger to respond yes or no to stat generation on a mud...

Basically I want it to say n or no until all stats generated are over 20, at which point it says yes, but I went about it the wrong way or made a mistake somewhere.

Here's what I've got...
Str~: (%d) Int~: (%d) Wis~: (%d) Dex~: (%d) Con~: (%d) Luk~: (%d) Agi~: (%d) Keep? ~(Y/N~)

#IF ((%1 >= 20) & (%2 >= 20) & (%3 >= 20) & (%4 >= 20) & (%5 >= 20) & (%6 >= 20) & (%7 >= 20)) {y} {n}


It seems to work, but what I also want it to do, is replace the numbers above 20, with the same number, but colored in red so I can see them easily when they stand out...


Str: 14 Int: 18 Wis: 13 Dex: 20 Con: 25 Luk: 25 Agi: 16 Keep? (Y/N)

So in this line, 20 for dex, 25 for con, and 25 for luk would all be red, and the rest would be left alone...
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jan 24, 2006 5:24 am   
 
#loop 1,7 {#if (%%i >= 20) {#PCOL red %x%i}}
_________________
EDIT: I didn't like my old signature
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