|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Sat Jun 05, 2004 1:11 am
ANSI Trigger |
I would like to create a flexible ANSI trigger, similar to this:
#VAR colortype {~[1~;32m}
#TRIGGER {{@colortype}You stumble and poke yourself in the eye.} {code} "" {color}
This doesn't work. This trigger will fire off any similar pattern regardless of the color tags before it. This works:
#TRIGGER {~[1~;32mYou stumble and poke yourself in the eye.} {code} "" {color}
I would like to be able to change the color tags on the fly however. Is this possible? |
|
|
|
nexela Wizard
Joined: 15 Jan 2002 Posts: 1644 Location: USA
|
Posted: Sat Jun 05, 2004 1:31 am |
Your forgeting %e so this mut be more of something you need
colortype="%e[1;32m"
#TR {{@colortype}You stumble and poke yourself in the eye.} {} {code} "" {color}
That is untested but I think it would work just make sure to quote your var with "" and zmud will store it as-is |
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Sat Jun 05, 2004 1:34 am |
Works perfect thank you.
|
|
|
|
|
|