Help needed with script!

Ok so I fixed my problem entirely. I all i needed to do was delete that line, and now its working like a charm! 

I ran into a new error using Modern Algebras script for a quest log. I read through his long manual, and I figured out how to set up the quest description but im lost at setting up the event for my quest. Lastly I tried setting it up and I retrieved the sword it said 0/1 adamantite sword found even though it was in my inventory and when i accidentally talked to the quest giver without the quest completed it locked my screen. ughhh!

Side note: To sum all this up, I just need help making the quest actually work, when I get the key item once the soldiers would stop dropping it, and that should be it in all honesty. It seems complex but I know its capable of happening.

 

here is my quest sample:

when 1 #2 Quest 2 

      q[:name]              = "Kings Lost Sword"

      q[:level]             = 1

      q[:icon_index]        = 7

      q[:description]       = "Retrieve the Kings Lost sword"

      q[😮bjectives][0]     = "Kill 12 evil soldiers"

      q[😮bjectives][1]     = "Loot the Adamantite sword from evil soldiers"

      q[😮bjectives][2]     = "Return to the king when finished"

      q[😮bjectives][3]     = ""

      q[😛rime_objectives]  = [1, 2]

      q[:custom_categories] = []

      q[:banner]            = ""

      q[:banner_hue]        = 0

      q[:client]            = "The King"

      q[:location]          = "Forgotten woods"

      q[:common_event_id]   = 0

      q[:rewards]           = [

        [:item, 1, 3],

        [:gold, 500],
First, if you're new then you should try to make your first project without any scripts - the sample game Crysalis is a good demonstration of what can be done without scripts, and scripts are more complex to understand if you don't know the basics.

Second, scripts are usually text files, and the text itself (not the file) should be copied into a slot in the script editor (part of the main editor). That slot usually is below "Materials" and above "Main" (both are names for slots in the script editor).

If a script is not provided as a text file but inside a project, that usually means that you need more than a simple text file for that specific script. In that case you'll have to open the demo project and copy everything needed for the script out of it by using the script editor (copy into a text file) and the resource manager (for pictures and sounds needed by the script), then open your own project and copy everything back in.

In addition you can use the demo project to check for any database entries that are needed to configure the script, and you have to check the script itself for configuration settings and change them (especially any used switches and variables) to the settings of your own game.

Third - usually the script's text file contains a description at the beginning telling you exactly what to do and how to use it. For more complex scripts that may be an external manual - some scripts have dozens of manual pages, and you NEED to read them completely before you can really understand, configure and use the script.

Fourth - please follow the link in my signature, I made that tutorial to help new users, and that goes double if you want to work professionally in game development.
Third - usually the script's text file contains a description at the beginning telling you exactly what to do and how to use it. For more complex scripts that may be an external manual - some scripts have dozens of manual pages, and you NEED to read them completely before you can really understand, configure and use the script.
Atelier's scripts is in a different language, so he can't understand the settings. 

As for your error:

'Mog_Damage_Popup' line 596: NoMethodError occured. Undefined method '-' For Nil:Nil classwell i don't think you should replace ANY data with Mog's, just copy the script files in an empty project and then copy over the scripts you need. Let's see if this works out for you. 
Atelier's scripts is in a different language, so he can't understand the settings.
Unfortunately not understanding the settings doesn't mean you can ignore them.

I agree that this makes it more difficult to get the settings right, but in that case a translation is neccessary.

Original thread: https://forums.rpgmakerweb.com/threads/help-needed-with-script.38011/