Author Topic: [XP] Stat Distribution System  (Read 54361 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Stat Distribution System
« on: January 09, 2008, 11:18:49 PM »
Stat Distribution System
Authors: Blizzard
Version: 2.3
Type: Actor Attribute Modifier
Key Term: Actor Add-on

Introduction

This script will allow you to distribute points to character stats instead of increasing the stats the usual way.

This work is licensed under BSD License 2.0:
Quote
Copyright (c) Boris "Blizzard" Mikić
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1.  Redistributions of source code must retain the above copyright notice,
    this list of conditions and the following disclaimer.

2.  Redistributions in binary form must reproduce the above copyright notice,
    this list of conditions and the following disclaimer in the documentation
    and/or other materials provided with the distribution.

3.  Neither the name of the copyright holder nor the names of its contributors
    may be used to endorse or promote products derived from this software
    without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

You may use this script for both non-commercial and commercial products without limitations as long as you fulfill the conditions presented by the above license. The "complete" way to give credit is to include the license somewhere in your product (e.g. in the credits screen), but a "simple" way is also acceptable. The "simple" way to give credit is as follows:
Quote
Stat Distribution System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikić

Alternatively, if your font doesn't support diacritic characters, you may use this variant:
Quote
Stat Distribution System licensed under BSD License 2.0, Copyright (c) Boris "Blizzard" Mikic

In general other similar variants are allowed as long as it is clear who the creator is (e.g. "Stat Distribution System created by Blizzard" is acceptable). But if possible, prefer to use one of the two variants listed above.

If you fail to give credit and/or claim that this work was created by you, this may result in legal action and/or payment of damages even though this work is free of charge to use normally.


Features

  • distribute points between different stats
  • extra scene for point distribution with confirmation window at the end
  • calls the "caller scene" automatically when finished
  • add points by easily pressing RIGHT/LEFT
  • hold Q to add 10 points at once
  • hold W to add 100 points at once
  • a Stat Distribution System that actually works like it should...
v1.1b
  • added option to call the Points Scene after a fight with level ups
  • customizable icon position and opacity
v1.2b
  • improved coding and made code shorter
  • rewritten conditions using classic syntax to avoid RGSS conditioning bug
v1.3b
  • improved coding
  • fixed bug with AUTOMATIC_CALL after battle
  • new AUTOMATIC_MAP_CALL works on the map as well (that means it's fully compatible with Blizz-ABS)
v1.33b
  • improved coding
  • improved compatiblity
  • fixed a little glitch
v2.0
  • improved coding and overworked system (corrupts old savegames with older version of this system!)
  • new design
  • new support for HP and SP
  • now possible to configure multiple points for one stat
v2.01
  • fixed bug with display of remaining DP
v2.1
  • fixed bug with calculation of DP allowance
v2.2
  • added possibility of using negative number in X_DP_COST values for inverted exchange rates
v2.2b
  • fixed a few small bugs when using inverted exchange rates
v2.3
  • added new license
  • added usage and crediting instructions


Screenshots




Demo

Stat Distribution System

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. 80% compatible with SDK 2.x. WILL corrupt your old savegames. Might cause problems with custom leveling up systems. 99% compatibility with everything else.

Credits and Thanks

  • Boris "Blizzard" Mikić

Author's Notes

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

That's it! N-Joy! =D
« Last Edit: March 23, 2019, 06:25:10 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 Galatea

  • Transcended Spirit
  • ***
  • Posts: 126
  • LV: 8
  • Gender: Male
  • Im Listening. . . *Chuckles*
    • View Profile
Re: Stat Distribution System
« Reply #1 on: January 10, 2008, 05:16:15 PM »
OMG! Your a genius! Thx!

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Stat Distribution System
« Reply #2 on: January 10, 2008, 06:52:44 PM »
Lol, the script's been existing for like 10 months. xD
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 Spoofus

  • CP's Lovable Turtle
  • Astral Trancist
  • *****
  • Posts: 819
  • LV: 19
  • Gender: Male
    • View Profile
Re: Stat Distribution System
« Reply #3 on: January 14, 2008, 09:58:23 PM »
lol has it really?  ??? i been using the heck out of it in my game it fits what i need just perfect


My Blog site I am working on: http://spoofus.weebly.com/

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Stat Distribution System
« Reply #4 on: January 14, 2008, 10:31:19 PM »
You should try my other scripts, too. There are many useful scripts amongst them.
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 Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: Stat Distribution System
« Reply #5 on: January 15, 2008, 04:46:03 AM »
Does this script automatically up the character's SP and HP, and you just add stats to everything else??

Offline Nortos

  • Has earned a custom title
  • Chaos User
  • ******
  • Posts: 1303
  • LV: 20
  • Gender: Male
  • Celestial Bomb my Digital Ass
    • View Profile
Re: Stat Distribution System
« Reply #6 on: January 15, 2008, 04:56:04 AM »
yeah you don't do hp/sp
(click to show/hide)
Nortos's Stealth System
UltaFlame's Storyline Service
Blizz ABS - The Ultimate ABS!
My Resources

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: Stat Distribution System
« Reply #7 on: January 15, 2008, 05:01:14 AM »
Then I think I might use this...
It actually gives the user the ability to optimize their own characters as they see fit.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Stat Distribution System
« Reply #8 on: January 15, 2008, 11:48:59 AM »
Yeah, it allows a system similar to Diablo 2 or MMOs like RO.
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 Nortos

  • Has earned a custom title
  • Chaos User
  • ******
  • Posts: 1303
  • LV: 20
  • Gender: Male
  • Celestial Bomb my Digital Ass
    • View Profile
Re: Stat Distribution System
« Reply #9 on: January 15, 2008, 12:47:43 PM »
goes well with the job system and ABS makes Diablo 2 style :P
(click to show/hide)
Nortos's Stealth System
UltaFlame's Storyline Service
Blizz ABS - The Ultimate ABS!
My Resources

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Stat Distribution System
« Reply #10 on: October 19, 2008, 03:14:38 PM »
Nobody likes my SDS. ._.
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] Stat Distribution System
« Reply #11 on: October 20, 2008, 06:00:30 AM »
No, I think just less people are finding bugs with it than previous scripts. I personally use this, and it's the best one in my opinion.

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Stat Distribution System
« Reply #12 on: October 20, 2008, 11:43:55 AM »
LOL! Yeah, one of the reasons why I made this was because so many people complained about other buggy scripts. Did you know that the basic system for v1.0 took me a bit more than half an hour and the rest of the script around 2.5 hours? I practically made v1.0 of this script in 3 hours. o.o
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] Stat Distribution System
« Reply #13 on: October 20, 2008, 04:09:59 PM »
That's a short amount of time, right? XD Yeah, I've used other ones, and in my opinion they suck :P

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Stat Distribution System
« Reply #14 on: October 20, 2008, 05:25:20 PM »
It's scarily short. Do you think you could pull off a system like this in 3 hours? :xD:
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] Stat Distribution System
« Reply #15 on: October 20, 2008, 05:31:02 PM »
I figured it was short. But I thought maybe its a long time for the scripting god, XD

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Stat Distribution System
« Reply #16 on: January 13, 2009, 11:22:22 PM »
Again...This is a beautiful script...
*adds to his game*

But like...
What would be the best way to call the scene from the map??
What would be your choice or method??
« Last Edit: January 13, 2009, 11:37:17 PM by Calintz16438 »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20016
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Stat Distribution System
« Reply #17 on: January 14, 2009, 04:33:01 PM »
I'd make a parallel process common event that checks for button input (i.e. A which is SHIFT) to call it via the script call I described in the instructions. And I think I would definitely turn on the option to call it automatically after a battle when necessary.
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 Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Stat Distribution System
« Reply #18 on: January 15, 2009, 01:37:17 AM »
Haha...
I'm a genius!! I'm glad I thought of it =)

Lol, but that's what I was thinking.
I figure I'll make it a common event so I can turn it on at the beginning of the game, and presto!!

Zinx10

  • Guest
Re: [XP] Stat Distribution System
« Reply #19 on: January 16, 2009, 01:36:31 AM »
Nice script!