Script: game interpreter line 1411: argument error occurred

Hello, I've been stuck with this problem for 3 days, so i decided to seek for help here.
The problem is this error:
Script: game interpreter line 1411: argument error occurred. comparison of Fixnum with nil failed.
When I use the 'Basic Quest System' by Vlue
More specifically the script call : adv_obj( :questid, 😮bjectiveid, value) at line #14 that must change the obj by value,
But whenever i run the event with this script call the error shows and send me to the line 1411 of the script Game_Interpreter,
that is: eval(script).
Any suggestions?

(sorry for any grammatical errors, english is not my first language)

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



Also most scripters have it in their terms of use to not repost their scripts. Can you remove the script from your post and post only the relevant code from line 14 please?
Moved to: RGSSx Script Support

Also most scripters have it in their terms of use to not repost their scripts. Can you remove the script from your post and post only the relevant code from line 14 please?


is it right now? sorry i'm a newbie and i must get used to this forums system !
That's okay .
Looks good. Can you post how you are calling the script when the error occurs? An error at line 1411 is an error in a script call command, so something is off in how you are calling it. A screenshot of the event with the call would work too.
When you can't post the original script, posting a link to the site you found the script on might still be helpful. 🙂
In your case, the error mentions a failed comparison, but the code you posted is only a call for another method somewhere in the questlog script (where the comparison probably takes place).

If the error message shows Game_Interpreter line 1411, usually an error has occurred while executing an "Script..." event command. If you know which one caused the error it usually also helps posting the code you were trying to run.
Edit: Ninja'd on that one =)


Anyway, assuming you are using this version of the script, my guess would be that maybe you made an error when setting up the quest and forgot to set the maximum progress value for one of its objectives? (At least right now I can't see another cause for this error)
Ok so....
1)this is the error:
Screen error.PNG

2) this is how I call the script
Screen event.PNG

3) this is the Mission in the script (obj3):
screen evento.PNG

I hope this is helpful
Thank for being so fast in answering!
Uh, right, from what I see the ending quotes in your 4th objective are a bit misplaced, making the ",1" part of the objectives name.


Fixing this should only affect new games though, not existing savestates. If you have a savestate you really want to continue using, you could make yourself an event to fix the value using this script code:
$game_party.quests[questID][objectiveID].set_instance_variable(:@max, QUEST::OBJECTIVES[questID][objectiveID][1])

(If this doesn't fit in a single line, try to force the linebreaks after one of the opening brackets, colons or commas.)
Uh, right, from what I see the ending quotes in your 4th objective are a bit misplaced, making the ",1" part of the objectives name.


Fixing this should only affect new games though, not existing savestates. If you have a savestate you really want to continue using, you could make yourself an event to fix the value using this script code:
$game_party.quests[questID][objectiveID].set_instance_variable🙂@max, QUEST:😮BJECTIVES[questID][objectiveID][1])

(If this doesn't fit in a single line, try to force the linebreaks after one of the opening brackets, colons or commas.)

Thank you very much! that worked! so stupid of me to overwatch such a silly error.😔
Thanks again!😍

Original thread: https://forums.rpgmakerweb.com/threads/script-game-interpreter-line-1411-argument-error-occurred.92187/