Help with constructing a series of events related to variables.

● ARCHIVED · READ-ONLY
Started by Little Paw 6 posts View original ↗
  1. 6BCplI3.jpg

    Okay first of all, I noticed a minor error in the first event. It should say "I'll join you for /V[6] battles!" But that isn't part of the problem.

    This is a set of test events to try and accomplish my idea for "Mercenary" characters.

    Ideally, what will happen is you speak to "Knight M" and it rolls a random number, which becomes his "limit", i.e. how many battles he will stick around before leaving the party.

    Then, at the end of each battle, it will add +1 to the "Knight M Battles" variable, and when "Knight M Battles" reaches the same number that was rolled for "Knight M Limit", the Parallel Process on the map (there is only one map where this will take place) will catch you with the event where he leaves the party.

    But the problem is, it automatically runs the parallel process as soon as you start the game because both variables = 0.

    What do I need to do in order to get this event to run properly?
  2. The parallel process should be a common event, conditioned to a switch "After battle". The last command on the parallel should be control switch "After Battle" = OFF.


    Then add a command "Control switch after battle = on" to your troop event.


    The parallel process will not run during battle (parallel CE are for maps only) but will start once after each battle, turning itself off after checking once (which also prevents the parallel from running sixty times per second as it would run now)
  3. Set the parallel process to only run if actor (the knight) exists. That should fix it.
  4. bgillisp said:
    Set the parallel process to only run if actor (the knight) exists. That should fix it.
    That might prevent the PP from running everytime, but it would still create a lot of lag due to running whenever the knight is in the party - better use my solution, because then it will run only once after each battle.
  5. Thanks, your idea worked perfectly, Andar :)
  6. Next time you need help with events, show the WHOLE event window, not just the bit with the commands in it. Often it's what's on the REST of the window that's important ;)