[VX] Stat points distribution system

Is there a way to make so that if you increase your HP it isn't a constant variable, but set within a random range? Like everytime you go to increase your hp it goes up within the range of 10-15.
find this line: $game_party.members[@menu_index].maxhp += HPIncreaseBy

and change HPIncreaseBy to "10 + rand(5)" without the quote

**the first number is the minimum of the range, the second number inside the rand() is maximum minus minimum :D
Ok, thanks.

EDIT: I tried it the way you showed me and it didn't work, but it did work when I put it by the HPIncreaseBy near the top. But, instead of randomly changing each use it uses the same number of increase over and over for everyone.
---
Now, I don't need this, but I am curious. Would it be possible to do that with each stat for each individual member. Like one party member is a knight so his Hp goes between 10-15 more as his mage companion Hp goes up 5-10?
Any suggestions on making this work for only Actor 1? It's a great system for when you want a highly-customizable character, and that's kind of what I was thinking. However, I only want one to be customizable.

Thank you in advance.
I still think what Lettuce told you should have worked... maybe its a bug in vx lol
but below worked on my scripts

hmm the reason it is always the same when you put it near the top... is because once the script is loaded it does not reload that part of the script...
so lets say... hpincreaseby = 10 + rand(5) = 12 it will always use 12 until you exit the game and reopen... then it should be different I thinks...

also you would have a problem with how it shows the hp increase since it would show the hpincreaseby = 12 in this case instead of a random amount each time... so a few more edits would need to be made...

what I did is in the spoiler tag XD
Content Hidden Spoiler
these edits depend that your hpincreaseby is set to 10 and does not have a random number added to it in the beggining

ok ok...

first I changed mine a bit and it worked for me so...

original line 525
Quote:
first go to line 525 in the script...
it should say the following...
    self.contents.draw_text(0,-5,112,20,"HP + "+HPIncreaseBy.to_s)

ok to change what the notice for hp changing is at bottom right
Quote:
first go to line 525 in the script...
change it to say something like this
    self.contents.draw_text(0,-5,112,20,"HP + 10 to 15")

this will give you in bottom right corner hp + 10 to 15

ok thats just to make it look ok...
ok now find line 690

Quote:
    $game_party.members[@menu_index].maxhp += HpIncreaseBy


now changing line 690 to
Quote:
    $game_party.members[@menu_index].maxhp += (HpIncreaseBy + rand(5))

should give you a random amount between 10 and 15 each time...

if that does not work...

I suggest changing it to this
Quote:
    $game_party.members[@menu_index].maxhp += ( 10 + rand(5) )

I think your main problem was that it was reading it and stoping at the +=10 and not adding in the random 0-5

now that I think about it... this is nice to know it works since I dont want it to add the same ammount each and every time for myself lol...

hmm also I think I had the newest version but if I did not just search for the code in the before quotes and change them to be the same as  the after qoutes


S-N not sure how to get it to work for just 1 specific character... are you using more than one character or just 1 character... if just 1 it should be easy just dont have anyone else in your party
if your using more than 1 character the script needs to be modified to be able to set what characters can be upgraded
Line 525 and 690 don't look like what you have up, but I will look for those and see if it works. Thanks wsenor.

EDIT: Yeah, it's not working.
wsensor wrote:
S-N not sure how to get it to work for just 1 specific character... are you using more than one character or just 1 character... if just 1 it should be easy just dont have anyone else in your party
if your using more than 1 character the script needs to be modified to be able to set what characters can be upgraded


I'm using multiple characters, I just only want one to be customizable.
Jakester: I've just tried 10 + rand(5) and it worked for me :0 what happen when you tried increase the HP?
as for the different class thingy, put this just before the 10 + rand(5) thing
class_val = {1=>[10,5] , 2 => [5,3]} #in this format { ClassID => [ LowerLimit , UpperLimit-LowerLimit ] , ... }
actor_class = $game_party.members[@menu_index].class_id
Expand to see the code.

and replace the 10 + rand(5) with "class_val[actor_class][0] + rand(class_val[actor_class][1])"

S-N : it is possible for it to work with one actor only, but under some conditions~ that character must be in the party and must also be the first person in the party  😐 Most things in this script uses $game_party variable, so if you want it to work with one character, no matter if s/he is in the party or in different order or whatever, you'll have to replace every instance of $game_party variables. but if you're REALLLLYYY want to, i can fix it up for you XD

if you're okay with the conditions I mentioned, just delete this bit:
   elsif Input.trigger?(Input::R) or Input.trigger?(Input::RIGHT)
     @menu_index += 1
     @menu_index %= $game_party.members.size
     $scene = Scene_Stat_Dist.new(@menu_index)
   elsif Input.trigger?(Input::L) or Input.trigger?(Input::LEFT)
     @menu_index += $game_party.members.size - 1
     @menu_index %= $game_party.members.size
     $scene = Scene_Stat_Dist.new(@menu_index)
Expand to see the code.

this will not let the player switch between characters in the party. Then you just call the script with "$scene = Scene_Stat_Dist.new(0)"
This is what's going on.
Content Hidden Spoiler
What is happening is that the amount is still going by this:
http://i28.photobucket.com/albums/c232/ ... /SS001.jpg[/img]



Instead of this:
http://i28.photobucket.com/albums/c232/ ... /SS002.jpg[/img]

I was messing around with the numbers before posting the screenshots. I don't know why it ain't working for me. =/

And that's cool with the different class systems. Also, whose battle coding do you have in your demo?
Yeah, I only needed it for Actor one, the main character, whom you cannot switch out.

Awesome Lettuce, it works perfectly.  :thumb:

I can still change things like points per level and increase cost, right?

Regardless, thank you.
S-N : yes, you can still change everything, it just won't switch to other character :3

Jakester: I've just remembered something. This script has 2 modes (normal mode where everything requires a fixed number of points, and a RO mode where everything requires more points depending on the current amount), which means there are 3 instances of HPIncreaseBy within the script. One at the beginning of the script for you to customize, and there are 2 more inside the main script, have you replaced those 2?

If you did and still have problem, PM me a copy of your game, I'll try to sort this thing out >o<

as for the battle code, it's another one of my script -> Warning:Links to other site  :shock: :shock: :shock: :shock: :shock:
Alright, it works now. I didn't know about the other HPIncrease near the bottom. >_<; Now, you are almost rid of me, but I have two more things.

1)How would I make it so that the number that has been randomly generated be shown on the bottom-right hand corner on the status screen? Or is there no way for that to be possible.

2)
Quote:
Jakester: I've just tried 10 + rand(5) and it worked for me :0 what happen when you tried increase the HP?
as for the different class thingy, put this just before the 10 + rand(5) thing
Quote:
class_val = {1=>[10,5] , 2 => [5,3]} #in this format { ClassID => [ LowerLimit , UpperLimit-LowerLimit ] , ... }
actor_class = $game_party.members[@menu_index].class_id

and replace the 10 + rand(5) with "class_val[actor_class][0] + rand(class_val[actor_class][1


I did this, though I don't think I did it right because I get an error.
Content Hidden Spoiler
http://i28.photobucket.com/albums/c232/Jakester101/SS003.jpg[/img]



Did I do the code correctly? I did it to the two HPIncreaseBy but this one is the only one with the error.
Content Hidden Spoiler
http://i28.photobucket.com/albums/c232/Jakester101/SS004.jpg[/img]


Sorry with all the wants and errors, I am coding illiterate. >_<;;
1) no, because the random number is generated at the moment you press the button :S

2) What I meant was one line above~
like:
class_val = {somethingsomethingsomething}
actor_class = $game_party.members[@menu_index].class_id
$game_party.members[index].maxhp += rand thing etc etc

😆
Hey, I downloaded the demo and it doesn't even start up I dont know what the problem is maybe its something wrong on my side. I love this whole script and I want to put this in my game badly! I just cant download it ;( I love the blue windows and that picture of Ralph. Are those in the demo to? Its so sweet!
nice script!
However i found a bug when i use the passive skill script and "weapon critical rate adjustment script", the critical rate after adjustment have not been displayed correctly (i have put your script followed the instruction)
try putting my script under all the other script that tickers with "def cri", if that still doesn't work then post a link to your other scripts :3
For some reason, I can't get this to work... It won't change any windows, and I tried putting it at the top and bottom of all Material scripts. Was I supposed to edit more things?

I'm also using the Map Name Popup script, the Time System script, Recover Stats on Level Up, Weapon Unleash, Battle Frenzy, Slanted Bars and Enemy HP Bar display.
have you tried calling the script?  :shock:
You know what would be really really great Lettuce?...
Release this for the [XP]! THAT WOULD BE REALLY GREAT FOR US OLDTIMERS...
I did release this for XP  😆 on CA  😘
hey this weird error popped up when I call ur script http://i255.photobucket.com/albums/hh13 ... itled2.png[/img]
if you cant read it, it says "Script 'Stat Distribution 1.5' line 317:NoMethodError occured. undefined method `twohanded' for nil:NilClass. Also for some reason, it only does this to my game and not like a clean, new game. Please fix it. O yea I do wanna make babies with you:D:D:D:D:D:D:D:D:D:D 😆
have you tried version 1.7? :3
....wow...i officially fail at life :down:. at least the script works though 😀

EDIT: I don't really know if this is important, but when you hold down the down button and look at the lower right box (the thing that says like atk+5 and stuff) it will stay as the same description as the stat you started holding down at. (for example, if i held down the down button and the cursor came down to defense, then started scrolling, when I would get to the critical stat, it would still say defense +5)

Also, you can call me an uberuberuberuber noob. but can you tell me how to add points after someone levels up? the description at the top of your script doesn't help, because i don't see any def change_exp
okokok i am EXTREMELY SORRY FOR THIS I KNOW I AM DOUBLE POSTING but i really want(not need) help. I already tried modifying the post but if someone went to check unread replies no one would see my question. please tell me how to edit the script so that i can it adds points when I level up. I would use the script in the demo but the demo is version 1.5 and 1.5 doesn't work (I already posted the error) anyway thank you and sorry for double posting. im gonna die probly for doin this  :dead: :dead:
def change_exp is inside Game_Actor script, line 522 :3
So... once again...

Mr. Lettuce, Are we gonna see tis on XP or should just quit askin'...
Lettuce wrote:
I did release this for XP  😆 on CA  😘


:{}!

unless, of course, you want me to put this on rmxp.org o.o
ooo lmfao lmfao i see its not in the game actor SECTION of your script, its in the actual game actor. wow sry im so retarted  😆 😆
er, i could use some help you see...
i did everything correctly and it WILL NOT increase my stat points when i level up.... (the points that you are able to choose where to add)
the default curve set in database works, however
and i cant access it from the status menu, period....
ive copied all of the default scripts from the demo but it wont allow me to add status via the status menu - i have to make an item called add stats that you use to goto the adding menu....
i use windows xp
i have tons of other scripts, do you think this is a script conflict? ill go into greater detail when i am clarified by another member
====================
ok im gonna upload it.... itl take along time
forgot i already posted here, lol
=====
http://www.mediafire.com/?mtylymbwnps
there is all the scripts (not the game with all the files its to big)
umm cant you just use version 1.7? the demo uses 1.5 so click on script not demo.

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=46347