Khas message error
Khas Scripts"wrong number of arguments" means that a command was given in a wrong way.
1) you mistyped a script command in the event that should give a message - if so we need screenshot of where you tried to display a message
2) you forgot to start a new game after installing that script (if Khas changed the default functions, your saved files will contain the wrong data)
3) compatibility problem between two scripts/plugins (might not neccessarily be two scripts you remember installing...)
1) you mistyped a script command in the event that should give a message - if so we need screenshot of where you tried to display a message
2) you forgot to start a new game after installing that script (if Khas changed the default functions, your saved files will contain the wrong data)
3) compatibility problem between two scripts/plugins (might not neccessarily be two scripts you remember installing...)
Audio.se_play("Audio/se/#{@voice}") if @sound && c != " " && @voice
SOLVED:
On the character's formatting name, should not contain spaces...
So if a character is called "Nick Name", within messages, you need to enter [NameNick], without leaving spaces between a name and the other...
I made a simple mistake >_>
Is there a way to move the message window?
Oh crap, I forgot to specify how the characters should be named, my bad.
What do you mean by moving the message window? I don't know if this answers the question, but my script doesn't allow any position settings, everything is automatic.
What do you mean by moving the message window? I don't know if this answers the question, but my script doesn't allow any position settings, everything is automatic.
@Khas
Here the example screen:

And this, the setting message:

I use 8 movement frames for my pg on database...
Maybe this is the problem?
Here the example screen:

And this, the setting message:

I use 8 movement frames for my pg on database...
Maybe this is the problem?
@Ally Probably. Would you mind to test it with the 8 movement frames disabled?
I have modified the script line (number coordinates) and work!
EDIT:
@Khas
If you want to add this here or in your blog, it may be useful...
Who uses sprite with multiple frames, you can alter these parameters:
cw = bitmap.width / 108 #24
ch = bitmap.height / 9 #8
(line 507/508)
The numbers 24 and 8, It is the default numbers... In my case, I have modified this numbers for bring them closer to my character...
EDIT:
@Khas
If you want to add this here or in your blog, it may be useful...
Who uses sprite with multiple frames, you can alter these parameters:
cw = bitmap.width / 108 #24
ch = bitmap.height / 9 #8
(line 507/508)
The numbers 24 and 8, It is the default numbers... In my case, I have modified this numbers for bring them closer to my character...
@Ally Thanks! I added the tip 🙂
I'll appreciate it 😀
Original thread: https://forums.rpgmakerweb.com/threads/khas-message-error.73993/
