Indie Dev

Hello Guest!. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, sell your games, upload content, as well as connect with other members through your own private inbox!

Negative Integers?

Status
Not open for further replies.

MinisterJay

Administrator
Staff member
Administrator
is there a way to make it where the controlled variables can be kept track of, even if they become negative, instead of bottoming up at 0?
 

Akod

Praised Adventurer
Control Variables already handle negative numbers?




Or are you talking about something else and I just misunderstood?
 
Last edited:

MinisterJay

Administrator
Staff member
Administrator
Here is an example. A character has 4 gems, and then encounters an event that takes away ten gems. I want it to show that the character has - 6 gems, meaning they are owed. I do not want it to say "0" gems. Hope that clarifies it a little bit.
 

Akod

Praised Adventurer
I still don't quite understand where the problem is. If you have a variable set to 4 and subtract 10 it should show as -6, unless something else is resetting it to 0. Is it showing up as 0 through the text command I used in my last post or do you have a plugin that displays it somewhere else, such as a custom menu?
 

MinisterJay

Administrator
Staff member
Administrator
I might need a break from the PC for a few minutes. lol. I was probably treating the gems as items or gold in my head. Give me a few minutes to take a breather. ;)

Making something simple...complicated. :)
[doublepost=1464377157,1464377089][/doublepost]This question has been answered and is going to be closed. Thanks @Akod .
 
Status
Not open for further replies.
Top