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


Joined: 07 Oct 2005
Posts: 1

PostPosted: Fri Oct 07, 2005 10:03 pm   

Auto roller
 
This is the output from the mud:

Strength: mundane Power: mundane
Dexterity: fair Intelligence: good
Agility: mighty Wisdom: mighty
Constitution: mighty Charisma: bad

Stats range from: perfect, heroic, mighty, good, fair ...
Twist is, you can switch values from one stat to another ...

How do I set it up so I could get, say, 3 mighty, 1 heroic, 2 good, 2 fair ... ?

Thanks!
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sat Oct 08, 2005 2:24 am   
 
The basic principle is the same as any other roller:

1)capture the information
2)evaluate and prompt the user

#variable StatValues {Perfect|Godly|etc}

#trigger {Strength: ({@StatValues})%sPower: ({@StatValues})} {#case %ismember(%1,@StatValues) {#add stats.perfect 1} {#add stats.heroic 1}continue for all your possible stat values;#case %ismember(%2,@StatValues) {#add stats.perfect 1} {#add stats.heroic 1}continue for all your possible stat values}
#condition {Dexterity: ({@StatValues})%sIntelligence: ({@StatValues})} {same as above}
#condition {Agility: ({@StatValues})%sWisdom: ({@StatValues})} {same as above}
#condition {Constitution: ({@StatValues})%sCharisma: ({@StatValues})} {same as above}
#condition {the roller prompt} {#if (your stats-count checking goes here, ie, (@stats.mighty >= 3) and (@stats.heroic >= 1)) {do stuff for choosing the roll and rearranging the stats} {do stuff to continue rolling}}
_________________
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