#make cutscene stonescript blah blahs

52 messages · Page 1 of 1 (latest)

wooden timber
#

It would be so much easier than just making a speech bubble and repeating it for every character the guy has to say

I wanna make pallas say “fuck you” when he dies

summer nacelle
#

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?

wooden timber
#

Heres an example:

#

(Foe).talk.(message),(distance to be activated, optional)

#

Skeletimmy.talk.”ouch!”,10

sharp nebula
#

@wooden timber this can already be done in stonescript as is
just gotta setup the functions

wooden timber
#

Im saying make it easier

sharp nebula
#

nope you gotta do that yourself but all the tools already exist

wooden timber
#

Im on mobile i cant import

sharp nebula
#

nope needs more but all the tools exist for that

wooden timber
#

One speech bubble takes about 400 lines

#

I tested it myself

sharp nebula
#

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

wooden timber
#

No im saying i dont wanna have to draw 400 lines when the limit is 2000

bleak flint
#

400? Maybe you can optimize it a bit

wooden timber
sharp nebula
#

it's something like 40k

wooden timber
#

Ok thats a bit better

sharp nebula
wooden timber
#

“Fuck you” would be 8 speech bubbles

#

One character worth of speech bubble is about 8 lines

bleak flint
#

Nah there's def some optimization there

sharp nebula
wooden timber
sharp nebula
wooden timber
#

Whats the official way then

elfin ermine
#

how tf do you take 400 lines to do that

#

should be like 30 max

wooden timber
#

If you want that transition thats in the main game

#

So “fuck you” is 8 speech bubbles

elfin ermine
#

why is it one speech bubble per character

bleak flint
#

Are you using the string functions?

#

Like string.sub()

wooden timber
#

No im doing it one character then speech bubble for character 2

#

Then speech bubble for character 3

#

And so on and so forth

spiral flicker
#

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

wooden timber
#

“Please leave me alone stonehead” is 31 characters

elfin ermine
#

do string.sub like citrion said to get 1 char at a time

wooden timber
#

Whats that

elfin ermine
#

read the manual

wooden timber
#

Ok one minute

remote elk
#

You can use it to get any numbers of characters in a row, at any starting point.

wooden timber
#

Ok that changes a lot