Freebird Games Community

Games & Design => RM[XP/VX/MV] and Game Design => RM Help & Support => Topic started by: dinnerordie17 on April 15, 2011, 04:12:34 AM

Title: A script that lets you walk around while a text box is up. (XP)
Post by: dinnerordie17 on April 15, 2011, 04:12:34 AM
I posted about this somewhere else and I thought I might ask around here as well, mainly because I think a script like this would be useful for almost any game.

I really really need a script that allows the player to walk around if a text box is up (it can be toggled) rather then even pressing enter the script allows a time to be set, and when that time is expired the text will dissapear (or be replaced by the next box)

I really really really really want something like this BAD! I want to be able to make an rpg game, where you can be in a room, and 2 people can be having a conversation, but you don't need to stick around or even read it, you can just walk around while they talk and text boxes come up.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: silversun on April 15, 2011, 09:14:38 AM
Ccoa's UMS (http://www.rmxpunlimited.net/forums/index.php?autocom=downloads&showfile=63)

I'm too lazy to actually try out what you're saying, but create a random event and name it "text1" or whatnot, make it "Parallel Process". The rest of what you're saying is in the demo.

If you need more explanation, I'll post a how-to later on.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: dinnerordie17 on April 15, 2011, 10:24:27 AM
Ah thanks, I'll try this out now and see how it works out.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: dinnerordie17 on April 15, 2011, 11:47:11 AM
(https://freebirdgames.com/forum/proxy.php?request=http%3A%2F%2Foi52.tinypic.com%2Fke6dc6.jpg&hash=b6673df092fdd0db2c15c01d890b4c9d)
Well I tried out something like this, I'm probably way off what you had in mind but it isn't working the way I wanted to, the text is in the right place but I still have to press enter to make it progress, and I can't walk around while it's up.

I could probably get the effect I wanted with Custom Graphics of text appearing over characters... but please there must surely be a less elaborate way.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: talia on April 15, 2011, 01:42:00 PM
you cant walk because the event is set to auutorun you should change it to parallel process to walk around while the text appears.
you should also erase the event after it executes or it will repeat itself.
use the erase event command at the end.
About the Enter thing you should use this code  \w[1]  at the end of every message and  replace 1 by any constant you like.
If its 1 then the window will close after one second and the next dialog etc will appear so you wont need to use enter.
The constant determines how long to wait.

Press F 11 and see the codes in the UMS script in case I am confusing you more :P

Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: Vasha on April 15, 2011, 05:41:58 PM
But parallel process just means that you can walk around while the event is running. You'll still freeze while the text box is open, won't you?
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: Sarkilas on April 15, 2011, 06:58:16 PM
But parallel process just means that you can walk around while the event is running. You'll still freeze while the text box is open, won't you?
With the default system, this would indeed be the case. But with the UMS it will bypass the temporary message procs when placed in a parallel process. I have never actually tried it, but that's how it is meant to be done, anyway.

Also a quick reference to the \w[] command. It bases on frames (multiplied by 2 as the event wait frames work). 20 frames will be equal to one second in this case. Using \w[1] would instantly close the window when the text has been written.

In addition, using Erase Event will make the event re-appear every time you transfer to the map from another map. Just stating that you'll need to activate another page to force it not to run again.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: silversun on April 15, 2011, 08:56:09 PM
(https://freebirdgames.com/forum/proxy.php?request=http%3A%2F%2Foi52.tinypic.com%2Fke6dc6.jpg&hash=b6673df092fdd0db2c15c01d890b4c9d)
Well I tried out something like this, I'm probably way off what you had in mind but it isn't working the way I wanted to, the text is in the right place but I still have to press enter to make it progress, and I can't walk around while it's up.

I could probably get the effect I wanted with Custom Graphics of text appearing over characters... but please there must surely be a less elaborate way.


As talia said, use Parallel Process. I'll have to refute her on the Erase Event thing though: use self-switches instead.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: Vasha on April 15, 2011, 10:52:52 PM
It's self switches if you want it to only say it once. If you want it to run every time you go into the map, you use erase event.

Sark: Huh, that's interesting. I don't really use Ccoa's Message Script, though, so I wouldn't really know :seraisweat:
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: dinnerordie17 on April 16, 2011, 12:11:33 AM
Hmmm this is how I set it up:
(https://freebirdgames.com/forum/proxy.php?request=http%3A%2F%2Fi51.tinypic.com%2Ft9cubt.png&hash=8120ecd5a02dacd439167c37375651c3)
I no longer need to press enter to make the text progress, but I still am unable to move while it is up.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: Rayen on April 16, 2011, 03:12:20 AM
Nn.. Changing line 1771 from
Code: [Select]
$game_temp.message_window_showing = trueto
Code: [Select]
$game_temp.message_window_showing = falseinstead seems to work. But the next message window you activate through another event will end up at the last event that a message was assigned to, unless you assign it to the new event.
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: talia on April 17, 2011, 05:22:19 AM
But parallel process just means that you can walk around while the event is running. You'll still freeze while the text box is open, won't you?
With the default system, this would indeed be the case. But with the UMS it will bypass the temporary message procs when placed in a parallel process. I have never actually tried it, but that's how it is meant to be done, anyway.

Also a quick reference to the \w[] command. It bases on frames (multiplied by 2 as the event wait frames work). 20 frames will be equal to one second in this case. Using \w[1] would instantly close the window when the text has been written.

In addition, using Erase Event will make the event re-appear every time you transfer to the map from another map. Just stating that you'll need to activate another page to force it not to run again.
Thats interesting thanks,
Kind of a noob at scripting so I assumed it would be in seconds :P

Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: Rayen on April 19, 2011, 01:42:31 PM
@ Dinner: Uh.. So did you try the line change I suggested, and did it work or not?
Title: Re: A script that lets you walk around while a text box is up. (XP)
Post by: dinnerordie17 on May 06, 2011, 09:23:06 AM
Oh jeez sorry it took me so long to reply, I tried it and I still can not move around while the text box is up, I'm thinking my only choice might be a Char graphic based system of text boxes at times.