Status
Not open for further replies.

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
12,003
First Language
English
Primarily Uses
RMVXA
I have installed Vlue's Combo script, but as I am at a very early stage of planning, no combo skills exist yet.

However, even so, under certain conditions I get this error message.
upload_2018-5-12_8-48-43.png

line 154 is
Code:
    if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo
I assume this means that the script thinks at this point that it ought to be kicking in, can't find what it's looking for, and so throws an error.

The conditions under which this happens is when an actor is hit while using Guard. This is not 100% guaranteed, sometimes it does not happen. What I think (but cannot be sure about) is that when it does happen it is because of the way I have set up my Guard skill. I have given it a 20% chance for one turn that the actor will counter attack. [See EDIT below]

Is that explanation the only one? Will I have to choose between combo skills and an enhanced guard skill?
I await your answers with the keenest anticipation - and dread, as I don't want to have to choose either/or.

Thanks.

EDIT
I am now sure that it is counter attack which is the problem. I removed the counter attack from Guard, but I still have another actor with a passive ability to counter attack. When he is hit and counters, the error occurs.
 
Last edited:

Isabella Ava

Veteran
Veteran
Joined
Sep 13, 2016
Messages
635
Reaction score
756
First Language
English
Maybe replace 154-157 into this will solve it?
if user.actor?
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo
value += user.current_action.extra_damage
value *= item.combo_damage if item.is_a?(RPG::Skill)
end
end
 
  • Like
Reactions: Kes

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,083
Reaction score
15,499
First Language
English
Primarily Uses
RMMV
It is saying there is no current_action for user.

Change this:
Code:
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action.combo

to this:
Code:
if SceneManager.scene.is_a?(Scene_Battle) and user.current_action and user.current_action.combo

edit: oops - the above might work too
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
12,003
First Language
English
Primarily Uses
RMVXA
@Isabella Ava It still threw the same error message. But thanks for the suggestion.

@Shaz Not sure what your "oops" referred to, but the line in your post now seems to have done the trick. Yaay! Who says choices are a good thing? Now I don't have to choose.
Thank you. Once more you've saved the day.
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
44,083
Reaction score
15,499
First Language
English
Primarily Uses
RMMV
oops meant I posted before reading the post above. But I figured it wouldn't hurt to give you a second option, just in case ;)
 
  • Like
Reactions: Kes

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,512
Reaction score
12,003
First Language
English
Primarily Uses
RMVXA
@Shaz And a good thing you did.

[mod]Closing as query solved.[/mod]
 
Last edited:
Status
Not open for further replies.

Latest Threads

Latest Profile Posts

Broke: Relating to and acting like Sephiroth
Woke: Relating to and acting like Kefka
Took me almost a year to flesh out this concept but hey, now it works.
01.gif
Part 1 of 24 pieces of our world map
I've finished (most of) the sprites for two of my main characters, Ashlyn and Lizzabelle. And I've already drawn actual artwork of Lizzabelle and Suki months ago. I can't wait to show some of my stuff. I'm hesitant because their outfits aren't my own original design, which must be changed before I get too serious with this.
Heh, um. I've spent $1500~ so far for my game. Most of that went into purchasing some software I need, as well as some commissions. But still, I didn't realize I had spent so much since the beginning of October.

Do not trust me with money, lol.

Forum statistics

Threads
116,987
Messages
1,103,562
Members
152,868
Latest member
c_alex078
Top