I don't really know how to do any scripts, but could someone give me a hand?
I wanted to make it so when I identify an item, I could save certain things into a variable
Taken from a mud I play
Quote:
You wave your arms and utter the words, 'identify'.
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/~~\
| | |
| -= cyanite leg mail =- |___/
| Type armor Weight is 1 |
| Value is 0 Level is 33 |
| It is mainly composed of ceramic. |
| Extra flags none. |
| Armor class is 8 pierce, 3 bash, |
| 7 slash, and 0 vs. magic. |
| Affects hit roll by 1. |
| Affects damage roll by 2. |
| |
/~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/ |
| | |
\_____________________________________________________\__/
Is there a way to make it so I can have it look for affects on it, armor class, extra flags, material, level of item, item type, weight, value, and item name?
So I could do something like this for an alias
"say ident"
which would do something like this:
Quote:
sprintf( output, "%s type: %s, weight %d, value %d, level %d, material %s, extra %s, ac %d %d %d %d, affects: %s%s%s%s%s%s", item_name, type, weight, value, level, material, extras, ac_pierce, ac_bash, ac_slash, ac_magic, affect1 != NULL ? affect1:"", affect2 != NULL ? affect2:"", affect3 != NULL ? affect3:"", affect4 != NULL ? affect4:"", affect5 != NULL ? affect5:"", affect6 != NULL ? affect6:"");
do_say (output)
(Sorry for using the C language to do that, it is the only language I know)
Something to those sorts
Any help will be very appreciated. |