Counter Options
Last Update: 2013.01.07
Script Download
This script allows to add options to choose wich skill will be used on ounter attacks.
Requires the Victor Engine – Basic Module
Full instructions at the header of the script.
Last Update: 2013.01.07
Script Download
This script allows to add options to choose wich skill will be used on ounter attacks.
Requires the Victor Engine – Basic Module
Full instructions at the header of the script.
Victor,
I have experienced an error while using this script. I set a weapon with the note tag <skill counter: x, y%> . It works great when y = 100%, but when y < 100%, the error occurs:
"Line 171: NoMethodError occured.
private method 'select' called for nil:NilClass"
The skill which is used as counter attack is already learnt by the actor, and it is a single-target skill.
Is this error caused by the script or i did wrong somewhere?
LikeLike
I’ve made a small change on the script, check if it solves your issue.
LikeLiked by 1 person
Thanks Victor. It works great now.
LikeLike
Sorry for bothering you, but there is another problem with this script that i have encountered:
I added 3 lines to a state and gave it to an actor:
As the script mentioned, one of these three skills should be picked randomly to counter attack, but i realized that the actor only used the skill from the last note tag (Skill no. 178), the other two (174, 182) were never used. I tried rearranging them, but still only the last note tag worked.
LikeLike
Pretty weird, as in my tests I didn’t have such issue.
For now, you can try the follwoing:
Add a 33% of happening on both the last and second counters, and a 100% chance on the first. This might be enough to ‘randomize’ the counters until I find a solution for that. Tell me if that works.
LikeLiked by 1 person
Well it also had no effect. Still the last note tag worked even the first one was 100%. I think i should temporarily reduce the number of skills used as counter to one and wait for your solution. Thank you for your answer.
LikeLike
but did you set the last with 33%?
LikeLike
I did set the last two note tags with 33% and the first one with 100%. But it still skipped the first two and executed the last one.
LikeLike
And when the condition of the last note tag did not meet, the counter was a normal attack like usual.
LikeLike
Oops sorry there three note tags are: (with line break on each note tag)
LikeLike
“skill counter: 182”
“skill counter: 174”
“skill counter: 178”
LikeLike