You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be a good idea to implement some way of storing/checking arbitrary integer values. The syntax could look something like this:
# general syntax is <ID>,<OPERATOR><VALUE>
# for setting values, valid operators would be =,+=,-=
# set my_status to 10. The = operator should be optional, so these two statements would be the same
set_int_status=my_status,=10
set_int_status=my_status,10
# increment my_status to 12
set_int_status=my_status,+=2
# decrement my_status to 11
set_int_status=my_status,-=1
# for checking values, valid operators would be <,>,<=,>=,==,!=
# Because we can use these operators, we don't need to have "not" variants of these attributes
# as with requires_status.
# true if my_status is 10. We can probably allow omitting this operator like we do with assignment
requires_int_status=my_status,==10
requires_int_status=my_status,10
# true is my_status is less than or equal to 10
requires_int_status=my_status,<=10
# For multiple values (e.g. save file storage), I think we can just string them together with semicolons.
# Commas will also work with our parser, but semicolons are easier for human reading.
campaign_int_status=my_status_a,10;my_status_b,5
The text was updated successfully, but these errors were encountered:
Maybe we can use them like % percent of a quest, for an example the quest would be hunt 10 goblin, while this quest is active that status will be increase when a goblin killed by player.That would be useful for modders I think.
I think it would be a good idea to implement some way of storing/checking arbitrary integer values. The syntax could look something like this:
The text was updated successfully, but these errors were encountered: