Page 1 of 1

Function Structs?

Posted: 26 Feb 2017, 2:11
by Shadowblitz16
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

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

Posted: 2 Mar 2017, 22:39
by Shadowblitz16
this suggestion is outdated I have one here that is better and would work very well