Pasting text into event script box, character limit?

Status
Not open for further replies.

maxtro

Villager
Member
Joined
Sep 8, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
I’m trying to paste all the text from my model event here



Into a new event box but it’s not letting me. Apparently I hit a character limit and am not allowed to enter everything else paste a certain point.

Full text is:

can_escape = true
enemies = [[1,12, false], [2,12, false], [3,12, false]]
start_pos = [22,24]
end_pos = [20,22]
escape_pos = [14,22]
actors_pos = [[20,21],[18,23],[23,20],[24,21]]
can_lose = false
$scene.call_ct_battle(can_escape, enemies, start_pos, end_pos, escape_pos, actors_pos, can_lose)

I can't enter any more text than everything up to

$scene.call_ct_battle(can_escape, enemies, start_pos, end_pos, escape_p

and then it starts giving me error noises

The original author manged to get past the restricion, so how do I?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Yes, there is a limit to the number of letters in the script command box.


The shortest and easiest solution would be to use shorter variables, for example spos = [22,24] instead of start_pos = ...


We can't say how the original author solved this because you didn't link to the script and examples - but there are only very few solutions possible because that limit is part of the original command.


There is a script from Tsukihime that combines consecutive script commands into a single command by combining their boxes, and there might be other scripts that remove those restrictions somehow, but you can't go beyond the limit without using scripts.
 

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,327
Reaction score
473
First Language
English
Primarily Uses
RMMZ
You need to put the script into the script editor (under tools).


If you scroll to the bottom of the scripts you'll see Main. The script should go above main but below the other scripts.


if you click insert then you can get a new blank section for it.
 

maxtro

Villager
Member
Joined
Sep 8, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
You need to put the script into the script editor (under tools).

If you scroll to the bottom of the scripts you'll see Main. The script should go above main but below the other scripts.

if you click insert then you can get a new blank section for it.
Yeah I did that already. The battle system is working fine for me.

What I'm trying to do is make a new event that starts a new battle. The script I posted earlier needs to go into each event box and all I do is change some of the number variables for enemies, start_pos etc.

My problem is that I’m hitting a character limit when I’m trying to edit those variables. I simply can't enter the same amount of text that the original author did.

I'm going to try using shorter variables, like spos instead of starting_pos. Now I just need to see where I can find them.
 
Last edited by a moderator:

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,327
Reaction score
473
First Language
English
Primarily Uses
RMMZ
Sorry, you could make method in the Interpreter class and them e.g.

class Interpreterdef battle1can_escape = trueenemies = [[1,12, false], [2,12, false], [3,12, false]]start_pos = [22,24]end_pos = [20,22]escape_pos = [14,22]actors_pos = [[20,21],[18,23],[23,20],[24,21]]can_lose = false$scene.call_ct_battle(can_escape, enemies, start_pos, end_pos, escape_pos, actors_pos, can_lose)endendThen in the call script just put:battle1
 

maxtro

Villager
Member
Joined
Sep 8, 2013
Messages
6
Reaction score
0
First Language
English
Primarily Uses
Cool, it took me about 10 minutes to figure out what you were talking about since I'm brand new to RPG Maker.

But I manged to get everything working. Using the script editor Class Interpreter was the trick.

Thanks.
 

Fomar0153

Arkz
Restaff
Joined
Mar 13, 2012
Messages
1,327
Reaction score
473
First Language
English
Primarily Uses
RMMZ
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top