Author Topic: [XP] Pay to Heal  (Read 6527 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Pay to Heal
« on: July 28, 2009, 09:23:22 PM »
Pay to Heal
Authors: Blizzard
Version: 2.0
Type: Healing System
Key Term: Misc System

Introduction

This script will allow you to heal your characters as you see fit and pay only for the healing you have made use of.

This work is protected by the following license:
Quote
Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
( http://creativecommons.org/licenses/by-nc-sa/3.0/ )

You are free:

to Share - to copy, distribute and transmit the work
to Remix - to adapt the work

Under the following conditions:

Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Noncommercial. You may not use this work for commercial purposes.

Share alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

- For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.

- Any of the above conditions can be waived if you get permission from the copyright holder.

- Nothing in this license impairs or restricts the author's moral rights.

Features

  • allows healing of HP, SP and states separately
  • gold-per-HP cost
  • gold-per-SP cost
  • different cost for each state
  • every undefined state is treated as "positive" state and will not be removed upon healing
v2.0
  • completely improved

Screenshots



Demo

Pay to Heal

Script

Just make a new script above main and paste this code into it.
Script Download

Instructions

Inside the script in the first comment.

Compatibility

99% compatible with SDK v1.x. 90% compatible with SDK v2.x.

Credits and Thanks

  • Blizzard

Author's Notes

After the HP healing and SP healing costs have been calculated, they will rounded up if the numbers are not integers.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: July 28, 2009, 09:25:36 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Aqua

  • Lexima Warrior
  • *******
  • Posts: 2554
  • LV: 118
  • Gender: Female
  • Quack!
    • View Profile
Re: [XP] Pay to Heal
« Reply #1 on: July 28, 2009, 09:45:13 PM »
Nice, simple, yet nice feature :P

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Pay to Heal
« Reply #2 on: July 28, 2009, 09:51:03 PM »
I made this when we started with TTM 3 years ago. I released it once in "Blizzard Script Collection v1.0", but after that it pretty much go lost. vacancydenied reminded me of it when (s)he asked for a script like that. So I figured I'd update it and finally release it publicly, hence why it's v2.0.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline legacyblade

  • Pretzel Man
  • Moderator
  • Chaos User
  • ***
  • Posts: 1838
  • LV: 84
  • Gender: Male
  • There is a fate worse than hell
    • View Profile
    • SpencerConrad.com
Re: [XP] Pay to Heal
« Reply #3 on: July 28, 2009, 09:54:47 PM »
Hey cool. This makes having a healer a lot more easier. Great script blizz!

Offline vacancydenied

  • Trained Member
  • *
  • Posts: 34
  • LV: 1
  • Gender: Male
  • Problem?
    • View Profile
    • Mimir Inc.
Re: [XP] Pay to Heal
« Reply #4 on: July 29, 2009, 03:56:19 AM »
Nice =). I will make good use of this script. Is it pretty simple to edit? Like if I wanted to raise the price by 3 fold or something. Anyways thank you for this. I probably would've made a huge even script if you didn't make this lol.
Nothing goes as planned but I keep going forward.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Pay to Heal
« Reply #5 on: July 29, 2009, 12:02:57 PM »
There's a configuration.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Jragyn

  • Ethereal Devastator
  • ****
  • Posts: 311
  • LV: 20
  • Gender: Male
  • A prodigy... maybe? Hoo hah.
    • View Profile
    • facenbooken.
Re: [XP] Pay to Heal
« Reply #6 on: May 17, 2010, 06:12:24 AM »
$scene = Scene_PayToHeal(x,y) doesn't werk cuz the Scene's real name is Scene_PayToParty in the script.

lolol. :knight:

Quote
Code: [Select]
#==============================================================================
# Scene_PayToParty
#==============================================================================

class Scene_PayToParty
 
  def initialize(hp_cost = BlizzCFG::HP_COST, sp_cost = BlizzCFG::SP_COST)
    @hp_cost, @sp_cost = hp_cost, sp_cost
  end
« Last Edit: May 17, 2010, 06:14:19 AM by jragyn00 »
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Pay to Heal
« Reply #7 on: May 17, 2010, 09:17:45 AM »
Oh lol! I'll put up a fixed version.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.