TeamSurge
07-05-2014, 13:25
fastExiva check $myx$,$myy$,$myz$
IfTrue ($lastcheckresult$#string=#-You see yourself. You have no vocation.-) fastExiva _voc = 0
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a knight.-) fastExiva _voc = 1
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a paladin.-) fastExiva _voc = 2
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a druid.-) fastExiva _voc = 3
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a sorcerer.-) fastExiva _voc = 4
#---------------------------------------------
now when your script can tell what your vocation is.
test it by:
sayMessage $_voc$
0=rook,1=knight,2=pally,3=druid,4=sorc
if you want it to say name of voc just change numbers to the name.
example:
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a sorcerer.-) fastExiva _voc = sorcerer
IfTrue ($lastcheckresult$#string=#-You see yourself. You have no vocation.-) fastExiva _voc = 0
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a knight.-) fastExiva _voc = 1
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a paladin.-) fastExiva _voc = 2
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a druid.-) fastExiva _voc = 3
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a sorcerer.-) fastExiva _voc = 4
#---------------------------------------------
now when your script can tell what your vocation is.
test it by:
sayMessage $_voc$
0=rook,1=knight,2=pally,3=druid,4=sorc
if you want it to say name of voc just change numbers to the name.
example:
IfTrue ($lastcheckresult$#string=#-You see yourself. You are a sorcerer.-) fastExiva _voc = sorcerer