#make cutscene stonescript blah blahs
52 messages · Page 1 of 1 (latest)
So what you want is a script that you input text to, and it outputs a correctly sized speech bubble you can draw on screen?
Sounds funny enough
Heres an example:
(Foe).talk.(message),(distance to be activated, optional)
Skeletimmy.talk.”ouch!”,10
@wooden timber this can already be done in stonescript as is
just gotta setup the functions
Yeah i dont wanna have to draw a speech bubble
Im saying make it easier
nope you gotta do that yourself but all the tools already exist
So i can put in 3 or so lines to make pallas say “fuck you”
Im on mobile i cant import
nope needs more but all the tools exist for that
so you do know how to do it, now just do it
no one is gonna do it for you and such a niche request isn't something the dev will do in stonescript language
No im saying i dont wanna have to draw 400 lines when the limit is 2000
400? Maybe you can optimize it a bit
2000 isn't the limit
Yeah it is i swear
it's something like 40k
Ok thats a bit better
tisnt
No you have to draw one speech bubble for every character the speech has
“Fuck you” would be 8 speech bubbles
One character worth of speech bubble is about 8 lines
Nah there's def some optimization there
not if you do it procedurally
Wdym
Whats the official way then
One speech bubble per character
If you want that transition thats in the main game
So “fuck you” is 8 speech bubbles
why is it one speech bubble per character
No im doing it one character then speech bubble for character 2
Then speech bubble for character 3
And so on and so forth
define a string with the message, use string.break to turn it into array, define a new array, use a for loop to push first n characters into new array, use string.join to get new substring, print it
“Please leave me alone stonehead” is 31 characters
do string.sub like citrion said to get 1 char at a time
That's one way sure
Whats that
read the manual
Ok one minute
You can use it to get any numbers of characters in a row, at any starting point.
Ok that changes a lot