String Variable questions

Alright, I'll start by saying I've made quite a few games in RPG Maker 2k -years- back, but I'm extremely rusty scripting right now as I've -just- started again on RPG Maker VX Ace. To start of I went ahead and used a script at http://www.rpgmakervxace.net/topic/4238-simple-text-input/ but i can't figure out what i'm missing.

In the conditions in an event window I've checked Variables 0011:GuildName and set the Triggerer at Autorun. So far simple. Now the part that I can't debug is In the Contents I've entered:

Script: $enter_text("What is the name of your Guild?", 1, 12)

in the Script Editor i've created a new script with the script from the site I previously mentioned and named it: enter_text. So my scrip should call the proper fuction (for lack of a better word).

With all that said, here'S the error message I'm shown when I try to run this event.

http://postimg.org/image/4zhejp1f1/

I don't understand why it'd expect a $end -before- setting the values of (title, variable, max_chars).

Insight/Help?
why do you use scripts to place messages?


The message windows need specific data, and that is not easy to add by scripts - and no one bothers because that is what the event commands are for.


Most likely you did something wrong when you tried to make your own script, even if you based it on a working script.


So if you want help, you need to post a link to your script for others to check.


I've moved this thread to Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
$ means it is a global variable... if it's a method, it should be


Class_Name.enter_text(params)


If you're calling it inside that class, then you can remove the Class_Name. part


And yeah, why are you using scripts to add messages?
That script does not add a message window.


It adds a new scene which let's you enter any number of letters in it, and upon confirmation, the string entered will be stored in a variable for eventing purposes.


One eventing purpose is to show the entered string in a message window, another one is to use it in conditional branches.


It's like the actor naming scene, but with this one, you don't need a dummy actor to use the entered string.


And yes, you don't need to use the $ sign, you simply enter:

Code:
enter_text("What is the name of your Guild?", 1, 12)
In the script call, and it should work.
Well to answer all the previous questions about scripting, it's quite simple. I've looked at my options to do what I wanted which is the player to be able to enter a guild name, store the name in a variable for further need of that name with a limit of twelve characters in the name. I know I can use an unused actor slots to store data (integer, string, etc.), but they don't have a size cap built in as far as I know. I've also removed everything else in the event page when I couldn't figure out the issue to isolate the problem, so yes It would appear to only show text, and a request for the player to input a name. The message is simply a reminder of the question asked by a previous NPC, to foolproof if a player skips the dialogues (like almost everyone does on a second playthrough, or players in a hurry for unknown reasons xD)

Thanks for the replies, I'll go test it out immediately. ^.^

Edit: Forgot to mention that the script that I used at http://www.rpgmakerv...ple-text-input/ is as is.

Original thread: https://forums.rpgmakerweb.com/threads/string-variable-questions.45420/