Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Hey I just put subclasses into my GTBS game and when I am in a tactical battle and press B twice over an enemy to view their stats and class I get this error and the game crashes.
I have no idea how I would define a subclass. I think it would be fine if pressing BB on an enemy to see their stats just didnt show their subclass, anyway to fix this?
 

Attachments

  • script.png
    script.png
    22.5 KB · Views: 9
  • error.png
    error.png
    5.3 KB · Views: 9

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,971
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSSx Script Support. Thank you.



Please add a link to the script. I don't know why it would be calling Draw Actor Class for an enemy ... what other scripts do you have that affect enemies?
 

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMVXA
The script is GTBS 2.4 with Yanfly subclass system added I believe. Its a tactical battle system and normally you can press a character to see their stats and class, but when I try and do it on an enemy it gives that error. Maybe because I dont have a subclass setup for the enemy? But I dont know how to set one up.
Pic related is it working with regular PC Characters but it doesnt work with enemies.
 

Attachments

  • combat.png
    combat.png
    201.9 KB · Views: 3

Roninator2

Gamer
Regular
Joined
May 22, 2016
Messages
5,244
Reaction score
1,574
First Language
English
Primarily Uses
RMVXA
Yanfly subclass system added I believe
Please be precise.
Yanfly class system?
Can you not give the names at least? A link to the script is what is always preferred.
This just allows us to help you better and faster, otherwise we could give a solution for something that you're not even using.

Add above that line (741) this line
return if actor.is_a?(Game_Enemy)
 
Last edited:

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMVXA
All the scripts say GTBS and are dated 2015. I do not have a link to the script unfortunately. Perhaps I can upload all the scripts im using somewhere? (although they all say GTBS)
 

Roninator2

Gamer
Regular
Joined
May 22, 2016
Messages
5,244
Reaction score
1,574
First Language
English
Primarily Uses
RMVXA
Still... you are using a yanfly script.
Regardless I posted a possible solution above.
 

Furiousfox

Villager
Member
Joined
Oct 24, 2021
Messages
16
Reaction score
3
First Language
English
Primarily Uses
RMVXA
Sorry I did not see the solution before I replied, it worked, you are amazing how do I virtually hug and kiss you?
 

Andar

Regular
Regular
Joined
Mar 5, 2013
Messages
39,932
Reaction score
11,876
First Language
German
Primarily Uses
RMMV
@Furiousfox
just an added comment about something I see in your error message screenshot.

whenever you add a script, you should name the slot you place the script in.
see that part "script '' Line 741" in that screenshot?
That should read "Script 'name of scriptslot' Line 741"

It doesn't matter if you know the script that has a problem, but if the error comes from a combination of scripts and you have to use the backtracer or anything else more complex, the missing name of the scriptslot will make bughunting extremely complicated.
 

Latest Threads

Latest Profile Posts

Kudos to everyone making game jam games, because this month has been hell for my development time. I have made a cutscene, 2 sprites, and 1 tile.

I guess I've made conceptual progress in hammering out combat roles and having fixes to be implemented (though I haven't done that yet)
Yeah, it’s a status #3, but it’s just to let y’all know I think I’m gonna have to do a twofer on the Advent compilation tomorrow. I feel like butt. Have a fever. I want to descend into my crypt.
I hope Baldur's Gate 3 wins BIG at TGA tonight. Tales of Arise was the last game to inspire me and BG3 has MASSIVELY surpassed that!
One day someone will build independent items for MZ. ONE DAY!
"This will be the game I actually finish!" Every dang time.

Forum statistics

Threads
136,818
Messages
1,270,385
Members
180,578
Latest member
JesterGameDev
Top