Function Structs?
Posted: 26 Feb 2017, 2:11
just a small suggestion about script data structs
basicly it would just be a way to group variables and functions so they weren't so confusing
structs would be..
-math
-string
-screen
-player
-npc
-block
-background
calling a function would be as simple as doing
"
that would assign "ex" to str.
I know this code wouldn't work since you can't assign variables like this in smbx but it was just an example
basicly it would just be a way to group variables and functions so they weren't so confusing
structs would be..
-math
-string
-screen
-player
-npc
-block
-background
calling a function would be as simple as doing
Code: Select all
str = "example"
str = string.left(str, 2);
that would assign "ex" to str.
I know this code wouldn't work since you can't assign variables like this in smbx but it was just an example