|
Ch33rz Newbie
Joined: 03 Feb 2003 Posts: 6
|
Posted: Mon Feb 03, 2003 10:41 am
Whats wrong with this trigger!? |
hi,
i get my status as follows
<73hp 145sp 162st>
so i have this trigger
#trigger {<(%d)hp (%d)sp (%d)st>}
but it keeps giving me syntax errors anyone know what the problem is thanx in advance... |
|
|
|
patryn Apprentice
Joined: 26 Sep 2001 Posts: 124
|
Posted: Mon Feb 03, 2003 11:06 am |
try this:
#trigger {~<(%d)hp (%d)sp (%d)st~>}
That which does not kill us, makes us stronger. |
|
|
|
Ch33rz Newbie
Joined: 03 Feb 2003 Posts: 6
|
Posted: Mon Feb 03, 2003 11:30 am |
well i think that worked although the (%d)'s are highlighted yellow any reason?
well the trigger is now this
#trigger {~<(%d)hp (%d)sp (%d)st~>} {
#var hps 1%
#var mps 2%
#var mv 3%
}
but my variables have the values of 1%,2% etc
shouldn't they have captured the values of %d ?
im sure its due to my coding but what?? |
|
|
|
Turnip Beginner
Joined: 22 Jan 2003 Posts: 11 Location: United Kingdom
|
Posted: Mon Feb 03, 2003 12:19 pm |
Hi
#trigger {~<(%d)hp (%d)sp (%d)st~>} {
#var hps %1
#var mps %2
#var mv %3
}
You just had the % and the numbers round the wrong way |
|
|
|
Ch33rz Newbie
Joined: 03 Feb 2003 Posts: 6
|
Posted: Mon Feb 03, 2003 1:01 pm |
hmmm its still saying my variables are not defined :( ...why are the %d's highlighted yellow? is this normal..
|
|
|
|
Kjata GURU
Joined: 10 Oct 2000 Posts: 4379 Location: USA
|
Posted: Mon Feb 03, 2003 1:16 pm |
You are entering the trigger in wrong. First, create a new trigger and put this as the pattern:
~<(%d)hp (%d)sp (%d)st~>
then put this as the value:
#VAR hps %1
#VAR mps %2
#VAR mv %3
Finally, make sure that in the Options tab Trigger on Prompt is selected and Trigger on Newline is not.
Kjata |
|
|
|
Ch33rz Newbie
Joined: 03 Feb 2003 Posts: 6
|
Posted: Mon Feb 03, 2003 1:49 pm |
omg schweet!!! thanx for your help and time works great!
|
|
|
|
|
|