Affinity System Help

Discussion in 'RPG Maker VX Ace' started by Rion Requiel, May 4, 2014.

  1. Rion Requiel

    Rion Requiel Twilight Requiem Productions Veteran

    Messages:
    215
    Likes Received:
    13
    Location:
    Usually the internet.. in front of my computer :)
    First Language:
    English
    Primarily Uses:
    RMMV
    Alright so I am determined to make a working "Affinity System" for the game I am working on. Basically the entire party is made up of couples. For this I will be using 2 of them as an Example.

    So I am playing with my Common Events and the like and working with Variables. Now I have labeled this Variable as "Rion Affinity" and at increments of 25 it is supposed to boost his lover's (Sabrina's) stats. Now it may seem straightforward and simple "Oh just have it be Equal to 25, 50, 75, 100, etc." Well it's not. You see when it goes to 25 it is supposed to boost Sabrina's stats by 3. So 16 becomes 19. However when I set up an event that adds 25 Affinity the numbers jump around... So instead of becoming 19 it becomes 43, 45, 51, 42, 78, etc. 

     I have set it to where it must be Equal To 25, 50, 75, and 100 however none of it is making sense. I would very much like some help. Screens Below.

    This is the event setup. Keep in mind it should only be utilizing the "Equal to: 25" event piece.

    [​IMG]
    As you can see in the screenshot below, it is set to lock the Variable at 25.

    [​IMG]
    And this is what Sabrina's stats are before the boost. Keep in mind the 25 Variable is only supposed to boost it a little. So her stats SHOULD be:

    SP: 450/465

    EF: 90/105

    Strength: 19

    Endurance: 19

    Focus: 19

    Resistance: 19

    Speed: 38

    Luck: 38

    [​IMG]
    However when you get 25 Affinity this is what it becomes....

    [​IMG]
    Attempt 2....

    [​IMG]
    Attempt 3....

    [​IMG]
    Attempt 4....

    [​IMG]
    Normally I would try to figure it out on my own but after stressing about it for hours I REALLY NEED HELP! As I said, the numbers really jump with no given explanation as to why. Please help me make this work, my game depends on it!

    My Emoticon Process....

    New Idea: BD

    Starts Working: B)

    Encounters Trouble: :unsure:

    Tries Again: ;)

    Fails...: :distrust:

    Tries a third time: :headshake:

    Gives up and begs for help: ;_;
     
    #1
  2. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    The problem is that it keeps doing the parallel process over and over again and adding what is under Rion Affinity == 25 repeatedly.

    You need a way to check if Rion Affinity == 25 to stop it from adding stats again.

    I suggest using a switch to check if stats have been added once before.
     
    #2
  3. Rion Requiel

    Rion Requiel Twilight Requiem Productions Veteran

    Messages:
    215
    Likes Received:
    13
    Location:
    Usually the internet.. in front of my computer :)
    First Language:
    English
    Primarily Uses:
    RMMV
    Makes sense... So I need to stop the Parallel Process from repeating then? Alright... Wonder how though.
     
    #3
  4. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    I suggest not making it a parallel process but have it called when a change is made to the affinity.  Also, do you want it to add stats again after reaching the 25 benchmark?  I suggest using two if statements for each benchmark and have one check if it already added the stats for that benchmark.
     
    #4
  5. Rion Requiel

    Rion Requiel Twilight Requiem Productions Veteran

    Messages:
    215
    Likes Received:
    13
    Location:
    Usually the internet.. in front of my computer :)
    First Language:
    English
    Primarily Uses:
    RMMV
    Nope I figured it out. The Switch idea worked. Basically I had to set a Conditional Branch with the Switch being Off and then set the Switch On after it adds the stats. ^_^

     Thanks for the help AwesomeCool
     
    #5
  6. AwesomeCool

    AwesomeCool Bratty and spoiled little sister Veteran

    Messages:
    2,877
    Likes Received:
    1,954
    Location:
    Behind you! BOOOO!
    First Language:
    English
    Primarily Uses:
    N/A
    Your welcome and hope that your project has no more hair puling experiences  :)
     
    #6
  7. Rion Requiel

    Rion Requiel Twilight Requiem Productions Veteran

    Messages:
    215
    Likes Received:
    13
    Location:
    Usually the internet.. in front of my computer :)
    First Language:
    English
    Primarily Uses:
    RMMV
    It probably will! xD
     
    #7

Share This Page