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


Joined: 23 May 2002
Posts: 9
Location: USA

PostPosted: Thu May 23, 2002 9:41 am   

autoroller need plz!!!!
 
If you guys can help me make a auto roller from something like this, I would really love it. It seems I got one. but it does not work.

Str: quite excellent Int: above average
Wis: good Dex: good
Con: above average Agi: excellent
Cha: very good Luk: below average
Pow: bad

Do you want to keep these stats?

just to warn you, I'm really stupid about making triggers. The #TRIGGER {#+Y-c} {great lost it again}{WTF} stuff really confuses me. I did not get a few to work using this thing. I tried it a few times.

Ok, I'm about as smart as forest gump!!
Reply with quote
Demonlord
Newbie


Joined: 23 May 2002
Posts: 9
Location: USA

PostPosted: Thu May 23, 2002 9:43 am   
 
if you need the address to this mud.....I can post it. If that will help.

Ok, I'm about as smart as forest gump!!
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu May 23, 2002 5:43 pm   
 
#VAR accept yes
#VAR StrNo {bad|poor|below average}
#VAR IntNo {bad|poor|below average}
#VAR WisNo {bad|poor|below average}
#VAR DexNo {bad|poor|below average}
#VAR ConNo {bad|poor|below average}
#VAR ChaNo {bad|poor|below average}
#VAR AgiNo {bad|poor|below average}
#VAR LukNo {bad|poor|below average}
#VAR PowNo {bad|poor|below average}
#TR {Str: (*) Int: (*)$} {#IF %ismember(%1,@StrNo) {#VAR accept no};#IF %ismember(%2,@IntNo) {#VAR accept no}}
#TR {Wis: (*) Dex: (*)$} {#IF %ismember(%1,@WisNo) {#VAR accept no};#IF %ismember(%2,@DexNo) {#VAR accept no}}
#TR {Con: (*) Agi: (*)$} {#IF %ismember(%1,@ConNo) {#VAR accept no};#IF %ismember(%2,@AgiNo) {#VAR accept no}}
#TR {Cha: (*) Luk: (*)$} {#IF %ismember(%1,@ChaNo) {#VAR accept no};#IF %ismember(%2,@LukNo) {#VAR accept no}}
#TR {Pow: (*)$} {#IF %ismember(%1,@PowNo) {#VAR accept no};@accept;#VAR accept yes}


Put whatever stats you consider unacceptable in the variables, separated by the | character. You can also add undesired stats one at a time with the #ADDITEM command or remove them (if you decide to accept something after all) with the #DELITEM command.

Don't protest your stupidity. There's plenty of information in the helpfiles for anyone who will take the trouble to read it.

LightBulb
Vague questions get vague answers
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat May 25, 2002 2:55 am   
 
I forget how zMud handles spaces with the *, might need a %s in the triggers.



Str: quite excellent Int: above average
Wis: good Dex: good
Con: above average Agi: excellent
Cha: very good Luk: below average
Pow: bad



#TR {Str: (*)%s Int: (*)$} {..
#TR {Wis: (*)%s Dex: (*)$} {..
#TR {Con: (*)%s Agi: (*)$} {..
#TR {Cha: (*)%s Luk: (*)$} {..


TonDiening
Beta Upgrading to 6.26
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat May 25, 2002 9:07 am   
 
The * wildcard will grab spaces and all non-special character symbols (or other symbols used by the system, such as " or ,). If you don't want the extra spaces in your variable, just butt the * up against the %s wildcard like TonDiening did.

li'l shmoe of Dragon's Gate MUD
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Sat May 25, 2002 4:45 pm   
 
I really should have said I don't know how "%ismember(%1,@StrNo)" will react with
all that blank space.

TonDiening
Beta Upgrading to 6.26
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Sat May 25, 2002 11:29 pm   
 
If excess spaces interfere, they can easily be removed. For instance,
#TR {Str: (*) Int: (*)$} {#IF %ismember(%strip(%1),@StrNo) {#VAR accept no};#IF %ismember(%strip(%2),@IntNo) {#VAR accept no}}


LightBulb
Vague questions get vague answers
Reply with quote
HariKari
Wanderer


Joined: 16 Feb 2001
Posts: 57

PostPosted: Tue May 28, 2002 10:20 am   
 
quote:

If excess spaces interfere, they can easily be removed. For instance,
#TR {Str: (*) Int: (*)$} {#IF %ismember(%strip(%1),@StrNo) {#VAR accept no};#IF %ismember(%strip(%2),@IntNo) {#VAR accept no}}



I think you were looking for the trim function.
#TR {Str: (*) Int: (*)$} {#IF %ismember(%trim(%1),@StrNo) {#VAR accept no};#IF %ismember(%trim(%2),@IntNo) {#VAR accept no}}
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Tue May 28, 2002 2:10 pm   
 
Yes, you're right of course. I even looked this up and still put it in wrong. Thanks.

LightBulb
Vague questions get vague answers
Reply with quote
Demonlord
Newbie


Joined: 23 May 2002
Posts: 9
Location: USA

PostPosted: Mon Jun 17, 2002 9:05 am   
 
hey tondiening, can you email me that for zmud? I read all the helps on it, and I'm still like forest gump..lol. It works but it only works for Pow. It would be a great game for a roller, if I could get that blasted thing working right.

Ok, I'm about as smart as forest gump!!
Reply with quote
Demonlord
Newbie


Joined: 23 May 2002
Posts: 9
Location: USA

PostPosted: Mon Jun 17, 2002 9:08 am   
 
well, if you want to do that drooling task for me...lol

Ok, I'm about as smart as forest gump!!
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Jun 17, 2002 3:05 pm   
 
I believe the final script you are looking for can be summarized from the
above as:

#VAR accept yes
#VAR StrNo {bad|poor|below average}
#VAR IntNo {bad|poor|below average}
#VAR WisNo {bad|poor|below average}
#VAR DexNo {bad|poor|below average}
#VAR ConNo {bad|poor|below average}
#VAR ChaNo {bad|poor|below average}
#VAR AgiNo {bad|poor|below average}
#VAR LukNo {bad|poor|below average}
#VAR PowNo {bad|poor|below average}
#TR {Str: (*) Int: (*)$} {#IF %ismember(%trim(%1),@StrNo) {#VAR accept no};#IF %ismember(%trim(%2),@IntNo) {#VAR accept no}}
#TR {Wis: (*) Dex: (*)$} {#IF %ismember(%trim(%1),@WisNo) {#VAR accept no};#IF %ismember(%trim(%2),@DexNo) {#VAR accept no}}
#TR {Con: (*) Agi: (*)$} {#IF %ismember(%trim(%1),@ConNo) {#VAR accept no};#IF %ismember(%trim(%2),@AgiNo) {#VAR accept no}}
#TR {Cha: (*) Luk: (*)$} {#IF %ismember(%trim(%1),@ChaNo) {#VAR accept no};#IF %ismember(%trim(%2),@LukNo) {#VAR accept no}}
#TR {Pow: (*)$} {#IF %ismember(%trim(%1),@PowNo) {#VAR accept no};@accept;#VAR accept yes}

Ton Diening
Providing untested answers that tend to be
more complicated than others.
Reply with quote
Demonlord
Newbie


Joined: 23 May 2002
Posts: 9
Location: USA

PostPosted: Tue Jun 18, 2002 9:56 am   
 
ok got it working, now to tone down the stats a little. $%#$%#$%^ crazy mud people! Tondiening you rock!!!! and lightbulb too!!!Who knows might get you to make a another for me one day....SOON!!lol

Ok, I'm about as smart as forest gump!!
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