I'm unsure if this is in the right area of the forums (I'm rather new to all of this) but I'm a bit at a loss of what to do on how to fix a repeating error that is interrupting a section of a new project. (I honestly have no scripting experience whatsoever so I have no idea what's going on or why it's giving me an error).
I'm using Hime's "Event Follower" script to make my Player Character follow an NPC (it was the only script I could find for this, so if there are others that might instead negate the problem, if the problem is with Hime's script, halp?)
The error happens exactly and always after a second map change. There is one NPC but the Event ID for the NPC is different on each map (Map1 Event ID 004, works fine, script ends and Player transfers to Map2)
On Map2 something weird happens, it get's buggy I guess? The script doesn't start like it did on Map1. The NPC makes a loop when the Script is started, forcing the Player to loop with them, but then follows the route as normal. Event ends and Player is transfered to Map3. (Event ID is now 006)
I get a glimpse of Map3 where the script is supposed to happen again, forcing the Player to follow the NPC (now Event ID 011) to its conclusion, but as soon as Map3 loads the game crashes and gives me an error report.
Script 'Game_Character' line 180: NameError occurred.
undefined local variable or method 'event_006' for the #<Game_Player:0x800baec>
I've tested this several times, changed the event scripting several times, even added in new scripting between stopping the follow script and the map transition and I still get the same error. The only difference is the #<Game_Player:0x800baec> portion changes slightly. The last time this happened I recieved #<Game_Player:0x8033d78>
I've double checked all event scripts to be certain that nothing is out of place, and as far as I can tell nothing is out of place. So I have no idea why I'm getting this error or how to fix it. Any help?
(If this is in the wrong topic, please tell me where I'm supposed to post this thank you!)
I'm using Hime's "Event Follower" script to make my Player Character follow an NPC (it was the only script I could find for this, so if there are others that might instead negate the problem, if the problem is with Hime's script, halp?)
The error happens exactly and always after a second map change. There is one NPC but the Event ID for the NPC is different on each map (Map1 Event ID 004, works fine, script ends and Player transfers to Map2)
On Map2 something weird happens, it get's buggy I guess? The script doesn't start like it did on Map1. The NPC makes a loop when the Script is started, forcing the Player to loop with them, but then follows the route as normal. Event ends and Player is transfered to Map3. (Event ID is now 006)
I get a glimpse of Map3 where the script is supposed to happen again, forcing the Player to follow the NPC (now Event ID 011) to its conclusion, but as soon as Map3 loads the game crashes and gives me an error report.
Script 'Game_Character' line 180: NameError occurred.
undefined local variable or method 'event_006' for the #<Game_Player:0x800baec>
I've tested this several times, changed the event scripting several times, even added in new scripting between stopping the follow script and the map transition and I still get the same error. The only difference is the #<Game_Player:0x800baec> portion changes slightly. The last time this happened I recieved #<Game_Player:0x8033d78>
I've double checked all event scripts to be certain that nothing is out of place, and as far as I can tell nothing is out of place. So I have no idea why I'm getting this error or how to fix it. Any help?
(If this is in the wrong topic, please tell me where I'm supposed to post this thank you!)