So far this is what i have, and clearly i have no idea what im actually doing, but It does not actually change the state of the token...can anyone please help me?
Code: Select all
[h:status = input(
"effect|Dead,Incapacitated,Blinded,Charmed,Deafened,Frightened,Grappled,Invisible,Paralyzed,Petrified,Poisoned,Prone,Restrained,Stunned,Unconcious|What is wrong?|RADIO|SELECT=0")]
[h:abort(status)]
[if(effect == 0),CODE:
{
[h: setstate("Dead", 1]
};
{
[h: setState("Incapacitated", 1)]
};
{
[h: setState("Blinded", 1)]
};
{
[h: setState("Charmed", 1)]
};
{
[h: setState("Deafened", 1)]
};
{
[h: setState("Frightened", 1)]
};
{
[h: setState("Grappled", 1)]
};
{
[h: setState("Invisible", 1)]
};
{
[h: setState("Paralyzed", 1)]
};
{
[h: setState("Petrified", 1)]
};
{
[h: setState("Poisoned", 1)]
};
{
[h: setState("Prone", 1)]
};
{
[h: setState("Restrained", 1)]
};
{
[h: setState("Stunned", 1)]
};
{
[h: setState("Unconcious", 1)]
};]