-
-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more variables #1029
Comments
Is this what you are looking for? https://betonquest.github.io/BetonQuest/versions/v1.11/05-Reference/#global-variables |
Allow conditions as variables -> true / false. Maybe with questlang? |
If I interpret that correctly, it could be useful to have some basic inline "if" clause in variables. A quick and dirty pattern I just came up with: This could maybe be extended to allow strings as variable, allowing fully conditional text-(parts) in conversations. Or even extending it to This is just an idea - needs further rethinking and is maybe even more intuitive with different machanics/patterns of BQ |
That was absolutly not what I wanted to note but that is infact a very good idea that fits the whole point of this idea much more! 😄 |
Moved to discussion #1355. |
Feature request
This request is meant to discuss about ideas and my examples are probably far from perfect, but before digging into a whole redefinition of variables, I would like to get some feedback.
I've stumbled over some variables which might be useful for some quests. Generally I think some values which are currently only detectable via conditions should be added to variables in order to work with them in conversations and variable objective.
%facing%
to get the location of the block the player is facing in the location format.%facing.type%
to get the Blocktype and%facting.x%
etc. to get the single location values as described in my other request (link at the end)%inventory%
to get more information about the players inventory. (different from%item%
to avoid item-name collisions)%inventory.empty%
for empty inventory slots%inventory.1-35%
to get the item in that slot. (or maybe just for armor/offhand)Examples how to add existing conditions to variables:
%time%
to get the current time ingame time in a realtime format for conditions%time.milliseconds%
for the time in milliseconds%time.hour%
to get the current hour%dayofweek%
to get the current day of the week, working with the conditiondayofweek
Maybe some ideas are too much for what BetonQuest is willing to offer the player as a quest plugin and should be done by learning java/spigot itself. But I think BetonQuest could extend more in that direction, as it still manages a lot around questwriting itself like storage, edgecases, compatibility and a lot more like conversation overhead. Additionally new variables wouldn't add more CPU usage to the plugin.
This feature request should be taken in consideration together with my other request to extended variable functionallity but I separated them, as they request different types of changes
Checklist:
The text was updated successfully, but these errors were encountered: