|
rajil Newbie
Joined: 07 Oct 2005 Posts: 1
|
Posted: 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! |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: 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 |
|
|
|
|
|
|
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
|
|