How can I make an attribute switch from positive to negative or negative to positive.
Comments
SlickZeroHouston, TexasMember, Sous ChefPosts: 2,870
Use "real" attributes. They allow the use of positive and negative numbers. As far as how, a little more info on what you are trying to do would help. (me at least) :P
SlickZeroHouston, TexasMember, Sous ChefPosts: 2,870
Yes it is. It will take 2 attributes. One attribute to do the counting to 193 or -193 (Lets say AttributeX for discussion purposes). And another attribute that says when attributeX =193, change attributeX to -193, and vice-versa.
SlickZero said: Yes it is. It will take 2 attributes. One attribute to do the counting to 193 or -193 (Lets say AttributeX for discussion purposes). And another attribute that says when attributeX =193, change attributeX to -193, and vice-versa.
Yea thats what I want to do, but how do I do that? I figured out how to change negative to positive using absolute value expression. Now all I need help with is finding out how to change positive to negative.
tenrdrmerMember, Sous Chef, Senior Sous-ChefPosts: 9,934
Do Change Attribute game.pos2neg to -(game.pos2neg)
Thats just a math thing there. a negative time a negative make a positive and a positive time a negative make a negative
SlickZeroHouston, TexasMember, Sous ChefPosts: 2,870
The second rule does that. Once the first counting attribute reaches 193, the second rule is activated because it's looking for that number of 193 until it can do its thing. Once the first attribute reaches 193, it triggers the second rule to change the first attribute from 193 to -193. For example...
In the actor that you want to have the score count increased or decreased have this...
Then add another rule that changes the positive to a negative like this...
Then you just flip it around to do the opposite count.
Comments
Here is an example using the number 193
If the attribute is -193 then change it to 193
if the attribute is 193 then change it to -193
-----------------------------------
Make sense?
I figured out how to change negative to positive using absolute value expression. Now all I need help with is finding out how to change positive to negative.
Change Attribute game.pos2neg to -(game.pos2neg)
Thats just a math thing there. a negative time a negative make a positive and a positive time a negative make a negative
In the actor that you want to have the score count increased or decreased have this...
Then add another rule that changes the positive to a negative like this...
Then you just flip it around to do the opposite count.
It's Thursday, and that's my day for cooking out and drinking beer. So is Friday Saturday and Sunday, but let's not get into particulars.