Jump to content
D-D-D-Dan

State that lasts over multiple encounters

Recommended Posts

Hey there :)

Im kinda stuck on this and cant seem to figure out how to set this up and im here in hopes to find someone that could give me

a hand, hint or short tutorial.

Im looking to make a state that gets applied when resting at a Inn (no problem sofar)

that then lasts over multiple encounters. (this is the problem)

By regular means states can be set to be removed after X amount of steps.

It works but its not ideal. I would rather set it up to X amount of encounters to give

it better consistency.

 

Thanks in advance for input, help, hints or ideas!

Greetz Dan

Edited by D-D-D-Dan

Share this post


Link to post
Share on other sites

Im using yanflys base troop events so i only need to set up the variable on one troop event and it will be carried over every encounter. (using this for a reverse mana system)

I currently have the Inn grant the "well rested" state. Then, this is probably the part thats wrong...

In the troop even i have this set:

If: Well Rested > 5
 Control Variables: #10 Well Rested -= 1
Else: 
  If: Well Rested < 0
   Change State: Entire Party, - Well Rested

Sofar this will reduce the state by 1 after the first encounter and wont do anything after that point :(

 

Okay it doenst look nice and there is probably a nicer or cleaner way but i got it to work.

IF: Well Rested ≥ 5
 Control Variables: #10 Well Rested -= 1
  Else:
	IF: Well Rested ≥ 4
 	  Control Variables: #10 Well Rested -= 1
	Else:
      IF: Well Rested ≥ 3
	    Control Variables: #10 Well Rested -= 1
      Else:
        IF: Well Rested ≥ 2
 		  Control Variables: #10 Well Rested -= 1
  		Else:
          IF: Well Rested ≥ 1
            Control Variables: #10 Well Rested -= 1
          Else:
            IF: Well Rested ≥ 0
              Change State: Entire Party, - Well Rested
  			 End

 

Edited by D-D-D-Dan

Share this post


Link to post
Share on other sites
15 hours ago, roninator2 said:

You just needed to use 


If: Well Rested > 0
Control Variables: #10 Well Rested -= 1
Elsif: Well Rested <= 0
Change State: Entire Party, - Well Rested
end

 

Yeah my brain functions a bit retarded sometimes :P
i had a mistake in the way i did it and re wrote it without keeping the one part that actually worked...

Elsif: Well Rested <= 0 Change State: Entire Party, - Well Rested end

 

I got it all figured out and tidy now thanks :D

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×