You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
1.1k views
in Crash by (540 points)
edited by

I added the new status to rubyhost by editing the Skill_Dialog.rb file and adding it to line 39 as skill 10. But when giving a move this status and a 100% chance, it crashes and says "nil is not a symbol nor a string". It could technically be unrelated to that and just be something wrong with the actual code, but I'm not really sure what I'm doing wrong here :[

Move in RubyHost

1 Answer

0 like 0 dislike
by (17.1k points)
Can you tell us all the edits you made concerning this new status? Not all the code, just tell us what you created and where.
by (540 points)
1st. Added frostbite as the 10th state/status
2nd. I added it to the statuschangehandler as a new apply method, status id to symbol, status apply message and animation, added it cure_message_id
3rd. Define status_frostbite, can_be_frostbite?, and frostbite? in module PFM class Pokemon
4th. Define frostbite? in status effectbase
5th. Made the effect, copied most code from burn and modified it to effect sp atk
6th. Added frostbite to the catch handler script
7th. Added frostbite as a status in Skill_Dialog for RubyHost and then gave that to a move to test
8th. Use the move in battle and crashes
by (17.1k points)
Can you show a screen of the move in Ruby Host? (you should be able to edit your topic's main message to show one)
by (540 points)
I added the pic!
by (17.1k points)
Alright, I checked and you still need one thing : you need to add your state's symbol to the constant in the Move Procedure (01600 Alpha 25 Battle Engine\04150 Battle_Move\00120 Procedure.rb) at line 280. Should be good, please test and tell if it works for you. If that's the case, select this answer as the best answer and I'll close the topic. :)
...