|
Morten Apprentice
Joined: 17 Feb 2001 Posts: 119 Location: Denmark
|
Posted: Sun Jan 27, 2002 3:18 pm
can.... |
anyone figure out if there is an error in this trigger set:
#CLASS {Psychic Gaze}
#TRIGGER { Hit Points: (*)~%} {party say %^BOLD%^Hit Points: %1~% %^RESET%^}
#TRIGGER { Exp Worth: (*)} {party say %^BOLD%^Exp Worth: %1%^RESET%^;#var vulnlist {}}
#TRIGGER { (%w) resistant: (*)} {#var vulnlist "%1 resistant: %2"}
#TRIGGER { (%w) vulnerable: (*)} {#var vulnlist "%1 vulnerable: %2"}
#TRIGGER { (%w) invulnerable: (*)} {#var vulnlist "%1 invulnerable: %2"}
#TRIGGER { Resistant: (*)} {#var vulnlist "Resistant: %1"}
#TRIGGER { Vulnerable: (*)} {#var vulnlist "Vulnerable: %1"}
#TRIGGER {You gaze at (*) and absorb (*)} {#forall @vulnlist {#if %begins( %i, Most resistant) {party say %^BOLD%^%^RED%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Least resistant) {party say %^BOLD%^%^GREEN%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Extremely vulnerable) {party say %^BOLD%^%^GREEN%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Very vulnerable) {party say %^BOLD%^%^GREEN%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Quite vulnerable) {party say %^BOLD%^%^GREEN%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Vulnerable) {party say %^BOLD%^%^BLUE%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Slightly vulnerable) {party say %^BOLD%^%^BLUE%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Slightly resistant) {party say %^BOLD%^%^YELLOW%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Resistant) {party say %^BOLD%^%^YELLOW%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Quite resistant) {party say %^BOLD%^%^MAGENTA%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Very resistant) {party say %^BOLD%^%^MAGENTA%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Extremely resistant) {party say %^BOLD%^%^MAGENTA%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Incredibly resistant) {party say %^BOLD%^%^RED%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Almost invulnerable) {party say %^BOLD%^%^RED%^%{i}%^RESET%^}};#forall @vulnlist {#if %begins( %i, Totally invulnerable) {party say %^BOLD%^%^RED%^%{i}%^RESET%^}}}
#CLASS 0
Yugo
Yugo Sangori |
|
|
|
Castaway GURU
Joined: 10 Oct 2000 Posts: 793 Location: Swindon, England
|
Posted: Sun Jan 27, 2002 5:00 pm |
No idea.. how about you tell us what it's doing, or not doing? And which version you are using.
Lady C. |
|
|
|
PrestoPimp Apprentice
Joined: 18 Sep 2001 Posts: 175 Location: USA
|
Posted: Sun Jan 27, 2002 7:36 pm |
if the it isnt working the way you want.. then there is an error.. if it is.. then there is no error.. problem solved.. NEXT PLEASE.
For tomarrow is another day, and other days come but 6 times a week. |
|
|
|
iljhar GURU
Joined: 10 Oct 2000 Posts: 1116 Location: USA
|
Posted: Mon Jan 28, 2002 1:12 am |
Heh, yeah, please give us a bit more info, you can't just throw something out there and expect everyone to know how it's supposed to work and what it's supposed to accomplish ;P
Iljhar |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Mon Jan 28, 2002 4:26 am |
It appears to me that you are trying to create a list of vulnerabilities and resistances. The five triggers which are supposed to build the list are:
#TRIGGER { (%w) resistant: (*)} {#var vulnlist "%1 resistant: %2"}
#TRIGGER { (%w) vulnerable: (*)} {#var vulnlist "%1 vulnerable: %2"}
#TRIGGER { (%w) invulnerable: (*)} {#var vulnlist "%1 invulnerable: %2"}
#TRIGGER { Resistant: (*)} {#var vulnlist "Resistant: %1"}
#TRIGGER { Vulnerable: (*)} {#var vulnlist "Vulnerable: %1"}
The problem is is that each time a trigger fires, the value already in @vulnlist is replaced with whatever the last trigger places in it. To build a list, you must use the #ADDITEM command:
#TRIGGER { (%w) resistant: (*)} {#ADDITEM vulnlist "%1 resistant: %2"}
#TRIGGER { (%w) vulnerable: (*)} {#ADDITEM vulnlist "%1 vulnerable: %2"}
#TRIGGER { (%w) invulnerable: (*)} {#ADDITEM vulnlist "%1 invulnerable: %2"}
#TRIGGER { Resistant: (*)} {#ADDITEM vulnlist "Resistant: %1"}
#TRIGGER { Vulnerable: (*)} {#ADDITEM vulnlist "Vulnerable: %1"}
If there's anything more to it than that, you'll need to provide us with more information.
Troubadour |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|