Creating new constants

KirieZ

Core Developers
Staff member
Messages
245
Points
0
Location
Brazil
Github
guilherme-gm
Emulator
Hello everybody,

I would like to know if there is a way to make new constants for scripts, I tried to add some values to db/const.txt and they worked, but I'm not sure if it's good to do this haha.

I thought about having a script that sets global variables ($@name and $@name$) inside a OnInit label too, but I'm not sure about the performance as the number of variables increases.

So, is there any other way, or a better option between these two? Thanks in advance and sorry for english errors.

 
Hello everybody,

I would like to know if there is a way to make new constants for scripts, I tried to add some values to db/const.txt and they worked, but I'm not sure if it's good to do this haha.

I thought about having a script that sets global variables ($@name and $@name$) inside a OnInit label too, but I'm not sure about the performance as the number of variables increases.

So, is there any other way, or a better option between these two? Thanks in advance and sorry for english errors.
Edit the const.txt
 
Back
Top