Feature Request: $char(ability,xxx) return values
Posted: Fri Jan 17, 2003 2:55 pm
Change the return values of $char(ability,xxx) to:
Currently ...
$char(ability,xxx) returns what /doability you have a skill set to (see Appendix C)
Also can return:
So if I wish to:
whereas I'd much rather do this:
Bleah, that example isn't great, but you get the point. Return values that share a common states are not contiguous.
I REALLY need to get a life/job.
- 1+: Currently useable /doability number
0: The ability is on a button but is currently unuseable.
-1: The skill is not on an ability button
-2: You do not have that skill
Currently ...
$char(ability,xxx) returns what /doability you have a skill set to (see Appendix C)
Also can return:
- 0: Skill not on an ability button
-1: You do not have that skill
-2: The ability is on a button but unuseable right now
- -2 available but not currently useable
1+ available and useable.
So if I wish to:
- ignore all unavailable skills, while
- note an available skill but currenly unuseable skill and
- do something interesting with a useable skill
Code: Select all
sub Fragment
/if $char(ability,xxx)==0 /return
/if $char(ability,xxx)==-1 /return
/if $char(ability,xxx)==-2 /goto :DoCommonStuff
/do useable stuff
/do more useable stuff
:DoCommonStuff
/stuff
/return
Code: Select all
/sub Fragment
/if $char(ability,xxx)<0 /return
/do something for all available skills
/if $char(ablity,xxx)>0 {
/do aesthetically pleasing stuff with usable skills
/do elegant stuff (note the subliminal propaganda)
}
/return
I REALLY need to get a life/job.