|
raivenloth Newbie
Joined: 23 Feb 2003 Posts: 9 Location: USA
|
Posted: Wed Nov 01, 2006 3:35 pm
Expanding variables |
I am capturing the limbs of the mob I am fighting, and since the limbs vary in name and number based on what I am fighting and they can be disabled or severed. I capture these when I begin the fight so that I can track what gets disabled. So I have limb1 limb2 . . . limb11. Each of those is assigned a limb name such as head, or right hand, right arm etc. now when a limb is disabled so and so's limb is disabled. I set {right hand} to 1
Variables
limb5 (expands to right hand)
right hand (expands to 1)
Status window
:(expand limb5's variable): (expand limb5) should look like this
:1: right hand
the variable inside : : varies I can't set it simply, any ideas how I could do this if possible? |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Nov 01, 2006 7:49 pm |
I'm not sure if you've tried it yet, but you probably want to look into the %expand function.
|
|
_________________ Asati di tempari! |
|
|
|
raivenloth Newbie
Joined: 23 Feb 2003 Posts: 9 Location: USA
|
Posted: Wed Nov 01, 2006 8:01 pm |
I have, all it will do is expand to right hand (in keeping with the example in my original post)
-R |
|
|
|
Guinn Wizard
Joined: 03 Mar 2001 Posts: 1127 Location: London
|
Posted: Wed Nov 01, 2006 8:03 pm |
Do the limbs always keep the same names? I.e. are there 11 named limbs in the game and a monster will have 1-11 of those limbs (as in something might have only limb1, limb2, limb5, limb7, limb10).
If so then it might be worth using a single key/value variable, so you could have
limb.1 = nonexistant
limb.2 = healthy
limb.3 = nonexistant
limb.4 = disabled
limb.5 = severed
Then just an alias to show the right labels with the limbs etc |
|
_________________ CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;) |
|
|
|
raivenloth Newbie
Joined: 23 Feb 2003 Posts: 9 Location: USA
|
Posted: Thu Nov 02, 2006 5:14 am |
I am sure there are a set number of limbs, but in the end it will still have the same problem I will need to display only the relavent limbs (probably 30ish in the game) so only display 10 possible so what happens is I capture the limbs and as they are displayed during the look I capture them.
-R |
|
|
|
|
|