Announcement

Collapse
No announcement yet.

Need Help with Inn script

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Need Help with Inn script

    I'm trying to make an inn for my game. I thought by selecting Inn and setting the rate would make the event act like an inn. I soon found out I was wrong. I'm not sure how to get my party to pay for the night or how they recover HP.
    Am I missing some variables that do this?

    Any help would be greatly apperciated.

    #2
    Re: Need Help with Inn script

    Originally posted by Whataface2 View Post
    I'm trying to make an inn for my game. I thought by selecting Inn and setting the rate would make the event act like an inn. I soon found out I was wrong. I'm not sure how to get my party to pay for the night or how they recover HP.
    Am I missing some variables that do this?

    Any help would be greatly apperciated.
    Inn scripts can be complicated at first. Luckily, there is an in-game example you can borrow from and cut and paste then manipulate to your taste.

    First you need to understand Inn Scripts come in twos. There is a script you make for the price of the Inn, then another script for the actual resting and recovery period. Here is an example of a script you would use for the INN counter.

    Data: Flag: {Cancel Menu} On
    Event Control: Change target to {Inn Keeper}
    Event Move: Change Direction Leader 1f
    (the last two commands just cause the NPC behind the counter to look at the character when he examines the counter)
    Text Message: (what ever you want the inn keeper to say)
    Input: Buttons: Constant Wait (this just means you push a button to make the message continue after the inn keeper greets you)
    Other: Wait 1f
    Input: Inn Rate (put desired inn rate here)

    In the Input: Inn command you will see a spot underneath the room rate. Here is where you put the actual script that recovers HP and everything, as well as the effects that happen when you actually stay at the Inn.

    The default script is number 245, so just use this or cut and paste and play around with it to your liking. This way you can use the same script for every inn yet have different room rates at the same time. It helps save memory.

    Hope this gives you a good starting point at least.

    Comment


      #3
      Re: Need Help with Inn script

      Originally posted by Whataface2 View Post
      I'm trying to make an inn for my game. I thought by selecting Inn and setting the rate would make the event act like an inn. I soon found out I was wrong. I'm not sure how to get my party to pay for the night or how they recover HP.
      Am I missing some variables that do this?

      Any help would be greatly apperciated.
      Inn scripts can be complicated at first. Luckily, there is an in-game example you can borrow from and cut and paste then manipulate to your taste.

      First you need to understand Inn Scripts come in twos. There is a script you make for the price of the Inn, then another script for the actual resting and recovery period. Here is an example of a script you would use for the INN counter.

      Data: Flag: {Cancel Menu} On
      Event Control: Change target to {Inn Keeper}
      Event Move: Change Direction Leader 1f
      (the last two commands just cause the NPC behind the counter to look at the character when he examines the counter)
      Text Message: (what ever you want the inn keeper to say)
      Input: Buttons: Constant Wait (this just means you push a button to make the message continue after the inn keeper greets you)
      Other: Wait 1f
      Input: Inn Rate (put desired inn rate here)

      In the Input: Inn command you will see a spot underneath the room rate. Here is where you put the actual script that recovers HP and everything, as well as the effects that happen when you actually stay at the Inn.

      The default script is number 245, so just use this or cut and paste and play around with it to your liking. This way you can use the same script for every inn yet have different room rates at the same time. It helps save memory.

      Hope this gives you a good starting point at least.

      Comment


        #4
        Re: Need Help with Inn script

        Thanks! Although I now feel a little stupid because the answer was right in front of me.

        Comment

        Working...
        X