Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Can you set the value of strings?

A topic by Polyducks created Sep 06, 2019 Views: 81 Replies: 4
Viewing posts 1 to 3
Submitted

I want to see if I can code a shorthand for some bulky text. Is it possible to set the value of strings?

Like...?

strings {
   already_done : string "I've already done that.";
   }

(from example source code in sticky)

Use it like...

: print ref="already_done";
Submitted (1 edit)

No, programmatically, from within a command. Like so:

: match "set string"  {
    set_string( "test_string" = "test" )
}

Much in the same way you can set booleans or integers

Submitted(+2)

Try this:

      : set_string var = "test_string" text = "new string";

Submitted

Perfection! Thank you!