Results 1 to 4 of 4

Thread: How much MP will I restore by resting?

  1. #1
    Senior Member
    Join Date
    Jun 2011
    Posts
    376

    Default How much MP will I restore by resting?

    Does Mafia know how much MP will be restored if I rest? Is there a function for this?

    (Alternatively, is there a function that will tell me where Mafia will rest when I script cli_execute("camp rest")? I could manually determine the restore amount if I knew which location Mafia would choose.)

  2. #2

    Default

    Check chateauAvailable and restUsingChateau to see if Chateau will be used for resting. If it is not being used, then "modtrace rest" will show you the modifiers you can look at to see what your campground will restore.

  3. #3
    Senior Member
    Join Date
    Dec 2008
    Posts
    498

    Default

    I have this line in my manaburning-script, which I *think* I stole from one of Bale's scripts. Hopefully it can be of some use to you:
    Code:
    rest_mp = numeric_modifier("Base Resting MP") * (numeric_modifier("Resting MP Percent")+100) / 100 + numeric_modifier("Bonus Resting MP");

  4. #4
    Senior Member
    Join Date
    Jun 2011
    Posts
    376

    Default

    Thanks to you both. That's exactly what I was looking for.

Similar Threads

  1. Question about resting to restore HP
    By ungawa in forum Community Support
    Replies: 1
    Last Post: 05-11-2014, 10:52 AM
  2. Feature - Implemented Campground resting cures beaten up
    By Theraze in forum Bug Reports
    Replies: 1
    Last Post: 02-06-2013, 07:33 AM
  3. KGE Uniform and Resting
    By CronoTalon in forum Buff Upkeep Scripts
    Replies: 2
    Last Post: 02-21-2012, 11:13 PM
  4. help with resting in campground
    By Deraj in forum Turn-Burning Scripts
    Replies: 5
    Last Post: 10-04-2009, 06:25 PM
  5. Help with a resting script
    By Wolfie in forum Scripting Discussion
    Replies: 4
    Last Post: 04-23-2006, 05:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •