[Solved] Setting text speed to the in-settings selected one

Status
Not open for further replies.

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
So, I noticed that the
Code:
{S:speed}
text code does not provide a parameter for going back to the speed chosed in the Message Settings Menu. Is there a call script for that? It would also be neat to use it in a script/placeholder script macro, I guess…
I'm not talking about resetting message settings, just tryin' to stop {S:speed} effects keeping in consideration the user's personal setttings.

Thanks!
 
Last edited:

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
246
Reaction score
62
Hi, I think you could define multiple placeholder macros for different speeds. The problem is that the text code {S:<value>} changes the message speed settings. It is the same as changing speed using Set Game Data command.

The first macro, lets call it "slow" to make slow text speed:

Code:
object.customData.speed = GameManager.settings.messageSpeed;
return "{S:0}"
and maybe also one called "fast"

Code:
object.customData.speed = GameManager.settings.messageSpeed;
return "{S:4}"
Another macro to change back to normal, lets call it "norm".

Code:
return "{S:" + (object.customData.speed||0) + "}"
All macros should be "Placeholder Script" macros. So this should work as long as you are not nesting it. Like:

Code:
{M:slow}Its....a slow text...{M:fast}Now its fast again!
That is not work, it must be like:

Code:
{M:slow}Its....a slow text....{M:norm}{M:fast}Now its fast again!{M:norm}
Basically, the slow and fast macro they will both first save the current speed configured in the message settings and then changing it. The norm macro will change the speed back to the saved one.

We will try to make that easier in the future. Let me know if that helps you out.
 

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
The problem is that the text code {S:<value>} changes the message speed settings.
Oh I see (had no idea:kaoswt:)

Thanks a lot then!
 

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
EDIT: I know I marked this thread as closed but what about an implementation of {M:norm} more like this:
Code:
return "{S:" + (object.customData.speed || GameManager.settings.messageSpeed) + "}";
This way:
  • if you accidentally call {M:norm} before other speed-modifier macros you won't have problems
  • you can fuse {M:norm} with other back-to-normal macros and use it before other speed-modifier macros w/o any problems
  • if {M:norm} and/or {M:fast} contain errors, these won't (necessarily) affect {M:norm}
 

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
246
Reaction score
62
Hi FoxySeta,

sure, feel free to use any code you like :) I just quickly put something together to help you out quickly, your solution above is probably better.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,831
Reaction score
5,221
First Language
Dutch
Primarily Uses
RMXP

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

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,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top