Blockland Forums > General Discussion
Events Replacement - How would you prefer?
Lugnut:
If its a scripting language, I would really prefer it was external.
I have poor fps, and any typing is difficult ingame, as it takes time for the game to register that I typed.
Chrono:
--- Quote from: Lugnut1206 on November 20, 2011, 04:23:08 PM ---If its a scripting language, I would really prefer it was external.
I have poor fps, and any typing is difficult ingame, as it takes time for the game to register that I typed.
--- End quote ---
If typing is a problem then you should probably hold off playing till you get a better computer.
Lugnut:
In actuality, the game runs fine, I just get poor fps on laggy servers.
I also don't have a problem with ingame chat, the problem is with the events gui.
M:
How it could be done without it being RIDICULOUSLY different from the current system and/or RIDICULOUSLY hard to make: event scopes.
A scope would be an input or a logic clause. A 'container' for outputs (some of these outputs can just be more scopes with attached logic).
So say you have
--- Code: ---onActivate
+ if client.bl_id == 4332
+ player -> kill
+ client -> centerprint("nothing important",2)
--- End code ---
that makes two scopes - scope 0 is for onActivate then scope 1 is for that logic clause. When you process the onActivate scope it has a little reference in its first slot saying to look at scope 1. The code then looks at scope 1, sees it has logic attached, checks to see if that logic works out and if it does, it will then schedule that scope to be processed after this one is done. Then it continues. Delays could also be attached to scopes, for instance "in 1000ms" or "in 5s" or "in 2m" as opposed to or possibly in addition to an if statement (in 100ms if client.bl_id == 4332 || player.health < 50%; delay would have to come first since it's only one piece to it)
We then add the integrated things to set variables, and allow inserting of variable references into any field.
When adding events you'd still have dropdowns containing everything (though when you click the dropdown, typing would filter it, pretty sure that's possible by focusing a textbox, and when you select from the menu it inserts your selection, or if you hit enter it inserts the first option. if you click off it it cancels)
Lugnut:
I dunno. I'm liking Chrono's example about halfway up the page.
--- Quote from: M on November 20, 2011, 05:02:28 PM ---(though when you click the dropdown, typing would filter it, pretty sure that's possible by focusing a textbox, and when you select from the menu it inserts your selection, or if you hit enter it inserts the first option. if you click off it it cancels)
--- End quote ---
this is looking really attractive, even if nothing else changes.