T0mcat
Avid Affiliate
- Joined
- Feb 5, 2012
Leela said:This brings up another question how do we compare variables? if (X>Y) then
Seems to me JSON isn't able to do that directly. It's just an data-interchange format, not a programming language ;)
You can only check if one or more variables are below, at or above given values.
So You can't compare the values themselves, only certain conditions of the values. Like checking if x and y are both above/equal to/below different or the same set value(s).
To check how much the values of the variables differ, You'd have to use many seperate lines to check the possible combinations of values.
Example:
Lets say we have the variables "swallowed" and "drooled". Each time SHE swallows or drools the value of the proper variable is raised by one. HE shoots just three loads into HER mouth. The possible combination of values would be:
swallowed = 0, drooled = 0
swallowed = 1, drooled = 1
swallowed = 1, drooled = 0
swallowed = 2, drooled = 0
swallowed = 2, drooled = 1
swallowed = 3, drooled = 0
swallowed = 0, drooled = 1
swallowed = 0, drooled = 2
swallowed = 1, drooled = 2
swallowed = 0, drooled = 3
That'd be ten lines in the dialogue just to check if SHE swallowed or drooled more often.. Which would enhance the workload of SDT a lot and slow the game down quite a lot. Just one load to swallow would add five more checks. The fifth load would add another six checks.. and so on..
swallowed = 0, drooled = 0
swallowed = 1, drooled = 1
swallowed = 1, drooled = 0
swallowed = 2, drooled = 0
swallowed = 2, drooled = 1
swallowed = 3, drooled = 0
swallowed = 0, drooled = 1
swallowed = 0, drooled = 2
swallowed = 1, drooled = 2
swallowed = 0, drooled = 3
That'd be ten lines in the dialogue just to check if SHE swallowed or drooled more often.. Which would enhance the workload of SDT a lot and slow the game down quite a lot. Just one load to swallow would add five more checks. The fifth load would add another six checks.. and so on..
As the example shows, this isn't a really good way to go ^^