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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,510
Reaction score
16,405
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
Veteran
Joined
May 22, 2016
Messages
4,675
Reaction score
1,323
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
Veteran
Joined
May 22, 2016
Messages
4,675
Reaction score
1,323
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

Veteran
Veteran
Joined
Mar 5, 2013
Messages
37,975
Reaction score
10,544
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 Posts

Latest Profile Posts

I've got good news and bad news. The good news is, there aren't any bad news to report. The bad news is, there aren't any good news to report.

Or as others say, yesterday was uneventful.


I am curious that can you "understand/get the point" about what does this place do generally?
(ARPG game)
If anyone knows any C# programmers, please send them my way.
Chilling at night in a tavern.
ChillingAtTavern.png

After 'multiple breakdowns', it's finally over. 10/10 will do this again.
Ever notice that villains can reform and become better people, but heroes can only ever die... or live long enough to see themselves become villains?

Isn't that interesting?

Forum statistics

Threads
129,844
Messages
1,205,657
Members
171,001
Latest member
OliguS
Top