MV SRD NameInputUpgrade - Syntax Error

Hello, I am brand new to game design on RPG Maker MV and I am using the SRD Name Input Upgrade plugin for a spelling question and when I play test it pops up "Syntax Error"
1718907955040.png

This is what I have for the event:
1718907994874.png


Just for information in case it matters- I also have been using the Map Gold Window plugin (which works!)

Any help is appreciated!
I'm not sure where the problem lays but, from your screenshots, it looks like your trying to make a question and answer conditional event. I have several of those in my game and I have a plugin for inputting the text.

CmdImp

I use this one... It takes what the player inputs into the text box and places it into a variable as a string. Then you can just use that variable in an event conditional branch [much like your script call, but easier to use] and just fill out the conditional branch like normal.
When asking for help with an error, you need to press F8, go to the Console tab, and show us a screenshot of the full error trace.

You don't need the open-close braces in your script box at all when there's only one line of code after the conditional, but that wouldn't cause an error.

Also, please link to whatever plugins you're using when you're asking for help. There's no such thing as "Yanfly Name Input Upgrade" - there's Yanfly's Key Name Entry and SRD's Name Input Upgrade, so without a link we don't even know which plugin you're talking about.
@kimko "syntax error" is computer speech for "you made a typo" or "you wrote nonsense".

I suggest replacing the entire script (which is where the error most likely comes from as plugins are usually better playtested) with its event command (conditional branch actor name =)
to prevent typo's in the future
I suggest replacing the entire script...with its event command
That's perfectly good advice, there's no reason for this to be a script call at all.

That being said, the code in it does appear to be correctly written. Impossible to tell without the error trace.
using the conditional name testing is better, as you can use selfswitches to
be ON if correct, and 2nd page so you cannot do the same question over
and over as it will be the else handler player directly.

not sure why the right answer switch will be OFF if it's not even ON!
Thank you so much for this feedback, it's very helpful since I am super new at this. Since you pointed that out, I went back and checked and it is in fact the SRD's Name Input Upgrade. I will work on figuring out how to show a screenshot of the full error trace and linking the plugins.
What I was trying to do is add a spelling test to my game.

When asking for help with an error, you need to press F8, go to the Console tab, and show us a screenshot of the full error trace.

You don't need the open-close braces in your script box at all when there's only one line of code after the conditional, but that wouldn't cause an error.

Also, please link to whatever plugins you're using when you're asking for help. There's no such thing as "Yanfly Name Input Upgrade" - there's Yanfly's Key Name Entry and SRD's Name Input Upgrade, so without a link we don't even know which plugin you're talking about.

I'm not sure where the problem lays but, from your screenshots, it looks like your trying to make a question and answer conditional event. I have several of those in my game and I have a plugin for inputting the text.

CmdImp

I use this one... It takes what the player inputs into the text box and places it into a variable as a string. Then you can just use that variable in an event conditional branch [much like your script call, but easier to use] and just fill out the conditional branch like normal.
Thank you!

using the conditional name testing is better, as you can use selfswitches to
be ON if correct, and 2nd page so you cannot do the same question over
and over as it will be the else handler player directly.

not sure why the right answer switch will be OFF if it's not even ON!

Thank you for this suggestion, I will try that way!

Original thread: https://forums.rpgmakerweb.com/threads/srd-nameinputupgrade-syntax-error.169655/