Switching positive to negative and vice versa

TackyAttackTackyAttack Member Posts: 141
edited November -1 in Working with GS (Mac)
How can I make an attribute switch from positive to negative or negative to positive.

Comments

  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 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
  • TackyAttackTackyAttack Member Posts: 141
    Here is what I am string to do:

    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?
  • TackyAttackTackyAttack Member Posts: 141
    Is this not possible???
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 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.
  • TackyAttackTackyAttack Member Posts: 141
    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.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 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
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 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...
    image

    Then add another rule that changes the positive to a negative like this...
    image

    Then you just flip it around to do the opposite count.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Sorry. I was getting attribute and rule mixed up earlier.

    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.
  • TackyAttackTackyAttack Member Posts: 141
    Thanks guys!!!
Sign In or Register to comment.