Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Oh really? I thought I was just doing it wrong, still, I think the problem resides in the way the macro is formatted and can’t be taken as an argument in the live_constant_add() function

#macro TEXT_FOREST_VESTIGES						\
case("example"):								\
    scrText("example_A_01");					\
    scrText("example_A_02");					\
    scrText("example_A_03");					\
    scrText("example_A_04");					\
    scrText("example_A_05");					\
    break;                                      \
case("example2"):								\
    scrText("example_B_01");					\
    scrText("example_B_02");					\
    scrText("example_B_03");					\
    scrText("example_B_04");					\
    scrText("example_B_05");					\
    break;                                      \

If you mean that you tried to do live_constant_add("name", TEXT_FOREST_VESTIGES), GM won’t let you do that as it’s not an expression.

TEXT_FOREST_VESTIGES should be usable without any additional effort in “live” code though - so long as it’s defined in a script in the project somewhere.

Ahhh, it might be that then, that macro was only referenced inside a script, gotcha, thanks!