The Skill Data Type

Grotfang

Developer
I'm looking at various script writing stuff at the moment, and have hit a little barrier - I was wondering if anyone could help. I want a user to be able to input any skill to an ASH script, that I can then use in some analysis later. However, the pop up box that appears when a skill type is in main() doesn't contain any combat skills.

Does anyone know why this is and how it can be changed?

For example, entangling noodles is a skill. Can you enter entangling noodles into this script without hard-coding it?

Code:
void main( skill x )
{
    print( x );
}
 

mredge73

Member
do you need to use the drop down list?

if not why not just have them input the skill in as a string and then convert it to a skill:
Code:
void main (string x)
{
skill test=x.to_skill();
if(test!= $skill[none])
    print (test,"green");
else
    print ("Invalid Skill Entered","red");
}
 
Last edited:
Top