Hi, I want to make a commands system similar to Minecraft’s, but for changing game variables, I know there’s the debugger but it’s clunky to use and I want something quicker that I can use without having to leave the game window
Currently I’m trying to make it so if I type “Life = (Number)” it would change the life variable to whatever number was typed, but I can’t figure out the condition part
Interesting concept but unless it’s a game mechanism, it might be easier to stick with the debugger. I was curious though, so I played with the concept using a structure variable.
You could use 2 input objects. One for the variable name and one for the value. Trying to create an event for each variable would be time consuming unless maybe you used JavaScript. An option could be to use a structure variable. You could create an autocomplete by checking if the child exists.
To make a clickable autocomplete, you would need to create separate text objects or maybe try to figure where the cursor is within the text list IDK based on position. IDK. Using a column of text objects that could be clicked would work. You could probably add something that would change the input to the first match if say space or [tab] was pressed. IDK. This is mostly just a concept. Unless it’s part of the game. I personally wouldn’t use it.
Fair enough, I don’t really mind doing something like this because not only would I want it for testing, but I would want it in the exported game too, and I don’t think the debugger comes with it, I’m hoping they make something like this official in the future or improve the debugger interface a bit, thanks for the effort!
I can see the benefit. Maybe it would be better if the variables were in a smaller popup window or docked like the Dev Tools ( [Ctrl] [Shift] [i] ) JavaScript could make this easier. Maybe parts of it could be turned into an extension or even a custom object. That would be nice. Just drop a custom object into the scene.