I'm trying to make a trigger that counts every time a parry an enemy attack. Down the road, the goal will be to have a miniwindow that shows a bar with 10 segments. Every parry will fill a bar, and a full bar will let me know I can execute a charged attack, at which point the variable will be set back to 0.
This is what I have so far. It triggers on "You parry *" so that it picks up any enemy I parry. I'm trying to get it to add +1 to the variable 'parrycount' every time this happens.
Instead, every time I parry, I get this message.
Compile error
World: The Game I'm Playing
Immediate execution
[string "Trigger: "]:1: unexpected symbol near ','
Anyone see where I'm making my mistake?
This is what I have so far. It triggers on "You parry *" so that it picks up any enemy I parry. I'm trying to get it to add +1 to the variable 'parrycount' every time this happens.
<triggers>
<trigger
custom_colour="1"
enabled="y"
expand_variables="y"
ignore_case="y"
keep_evaluating="y"
match="You parry *"
regexp="y"
send_to="12"
sequence="100"
>
<send>setvariable "parrycount", CInt(getvariable("parrycount")) + 1
note getvariable("parrycount")</send>
</trigger>
</triggers>
Instead, every time I parry, I get this message.
Compile error
World: The Game I'm Playing
Immediate execution
[string "Trigger: "]:1: unexpected symbol near ','
Anyone see where I'm making my mistake?