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

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!
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.
The problem is that the text code {S:<value>} changes the message speed settings.
Oh I see (had no idea😅)

Thanks a lot then!
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}
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.

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.

Original thread: https://forums.rpgmakerweb.com/threads/solved-setting-text-speed-to-the-in-settings-selected-one.97386/