Script/Plugin call for ScrollingText how to hold events

iamhers

Villager
Member
Joined
Dec 29, 2016
Messages
7
Reaction score
0
First Language
C, oh English
Primarily Uses
Hello,

So in a new project (MV) without any other adjustments.

Issue
I have a series of tasks I want to execute, and the latter ones are running immediately after I start a scrolling text task.

Details
I want to have a scrolling text pop up. It will pull the text from a json file, where I am storing all messages. I can do this with no issue, if I just push the text to text boxes. Once I hit action button past the messages, the latter tasks will execute.

task 1 -- $gameMessage.setScroll(2, false); //Set ScrollText on
$gameMessage.add($cMessage.map[0].message[0].value) // Add text.
task 2 -- $gamePlayer.reserveTransfer(1,1,1,6,2); // Transfering before hero is added so you don't see hero until after.
task 3 -- $gameParty.addActor(1); //I don't have a hero set at start so there is no character visible

What code am I missing to make the other events HOLD until the text goes past one time ?
I am open to handle this any way, so long it is with script/plugin command etc.

Thanks in advance!
 
Last edited:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,670
First Language
German
Primarily Uses
RMMV
Why do you need this as script commands?
Because that is a bit complex, and the regular event commands are much better when trying to add waitflags and with timing the main game loop.
 

iamhers

Villager
Member
Joined
Dec 29, 2016
Messages
7
Reaction score
0
First Language
C, oh English
Primarily Uses
The desire is to reduce the event requirements.
For example. Grab a piece of text and display. Do some more stuff. Normally I need to create events, and put the text inside those events,
But if I can use scripts/plugin commands, it becomes a one liner: MessageCMD 0 3 << 0 is map, and 3 is message.
This allows me to have all of the messaging in a singular location, for manipulation, or moving to next game etc. It just allows for better management of the assets I put into the system.
Normally, you start games, and then you end up not finishing them, and it becomes difficult to take pieces out of the unfinished work, and reuse. Or it becomes diffficult to start over, and have to re-grab text, or other assets etc.
Just an architecture design I would like to use, that will make the implementation simple, and other valuable reasons.

I don't really see too much complexity added here though. The only real issue I am having is with the scrolling text. I see back in 1.3 or something there was some weird bug, but this doesn't appear to be anything similar.

It actually just appears to be that I am not putting the right code in the right order, or potentially missing some calls.

I guess the real solution would be me getting a little help in understanding how the ScrollingText is working? When I add the event.
What commands become active or are run on initializing, that lets the text run until done.

I need this to be a parallel event, where it loads on map starting. Then after text finishes it warps you to the next map where the game begins.
If I put events in place it works, but I wasn't able to get a PROGRAMMATIC method put together that produced the same results.

I will probably just give-in, but it really isn't what I want to do. So if anyone can spot a way to do it, that would be more than appreciated.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,670
First Language
German
Primarily Uses
RMMV
The problem here is that everything that requires timing has to go through the main game loop.
The event commands have been written in a way to do that savely, but using scripts bypasses that framework and is a lot more complex and risking bugs if you don't know exactly what you're doing.
And unfortunately I only know the general theory behind that, so I can only point you to some material for reading in hope that it can help you.

The tutorial "bughunting" in my signature contains some general background info that might help or not.
However you should also search for tsukihimes blog. She wrote a script that gives a framework for creating new events from script commands. That could either be the better way for you (creating the event by script and then run that savely instead of trying the functions directly), or it could give you the references you need when you analyse what she did.
Sorry, I don't have the direct link at the moment.
 

iamhers

Villager
Member
Joined
Dec 29, 2016
Messages
7
Reaction score
0
First Language
C, oh English
Primarily Uses
Andar,

Thanks. I was really trying to run a script command, to keep the event control in place. I realized after thinking over this ( the 12th time ) I can just alter the ScrollingText, to use the changes I need.

This would be in effect on everything I use it for, so there would be no issue here.

Regardless -- Thanks for taking time to respond. You can close this thread, as I will utilize a workaround.
 

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top