Main Menu
  • Welcome to The RPG Maker Resource Kit.

[MISSING] Stat Distribution System v1.1b

Started by Blizzard, March 26, 2007, 09:38:08 AM

0 Members and 1 Guest are viewing this topic.

feildmaster

It pops up when you call the "$scene = Scene_Points.new"

also to blizz, i asked that so I could know how to make it call up automatically after someone levels from a battle... o.o
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

tSwitch

I might use this for a later project, but mebe not for Arkarian Legend
also, really really nice layout


FCF3a A+ C- D H- M P+ R T W- Z- Sf RLCT a cmn+++ d++ e++ f h+++ iw+++ j+ p sf+
Follow my project: MBlok | Find me on: Bandcamp | Twitter | Patreon

Karo Rushe

I have one word to say...and is that this Script goes beyond one's Expectations X_X

If I want an Item that can Add Point for it, all I have to do is Create A Common Event and a Call Script right? =D

feildmaster

----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Blizzard

#29
Ok, if you want it to be called after level ups in battle, use this extra piece of script. Note that this extra here WILL corrupt all your old save games again.

# Game_System

class Game_System
 
  alias init_sss_extra initialize
  def initialize
    init_sss_extra
    reset_levels
  end
 
  def reset_levels
    @old_levels = []
    for i in 1...$data_actors.size
      @old_levels.push($game_actors[i].level)
    end
  end
 
  def test_levelup
    for i in 1...$data_actors.size
      if @old_levels[i-1] < $game_actors[i].level
        reset_levels
        return true
      end
    end
    return false
  end

end

# Scene_Battle

class Scene_Battle
 
  alias main_sss_extra main
  def main
    main_sss_extra
    $scene = Scene_Points.new if test_levelup
  end
 
end

# Scene_Map

class Scene_Map
 
  alias upd_sss_extra update
  def update
    upd_sss_extra
    test_levelup
  end
 
end




Tell me if it works, I just made it out of my head and didn't test it.
Note that it will NOT recognize level downs and that it will recognize the level ups of ALL actors. If a level is changed on the map, it won't call the scene.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

feildmaster

#30
I guess I will test it...


nope... doesn't work
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Blizzard

Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!

feildmaster

----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

punishermark13

Can i make it so when he kills monsters he gets points. then bosses give you more points
mark

feildmaster

Hmm... if your monsters are all events than you could add this script code...

$game_actors[Y].remove_stat_points(Z)

to give points to "Y" actor... actually... i think I'll just let bliz think about this one... sorry i just don't feel like it... =)
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Viviatus

Oh my... you will never stop, will you? I have no idea how you do all this... You must have some sort of a time maschine, otherwise you'd be having a 30h day which is not possible.

Sorry to say that I can't use this one in my game... but you already know, I guess!

Irgna

I like it, and plan to use it in my MMO. Mind if I edit it a bit?
PROPERTY OF TEABAG!!! ALL HAIL TEABAG!!!

Kokowam

Lol. Blizzard just loves making scripts that corrupt old save files XD How does that even happen, though? Oh, and if I wanted to add this to the regular menu, how do I add it? I mean, I know how to add a "when" and stuff and everything (at least I think I do) but how do you add an arrow to the menu and make an option come out when you press down?

feildmaster

it happens because a script is introduced that wasn't there before and it needed to be set originally (like in a new game..)... something like that... that's why it corrupts... =)

and technically.. you don't really... "need" to do that down menu thingy.... (it just looks better... =))

just add the right stuff... lets say, s7 = "Status Applier"

add s7 to the array with s1,s2,s3...

go down to "when 5..." and above the end add...
"when 6
     $scene = Scene_Points.new"

the bottom would look something like this...

when 5  # ?????
        # ?? SE ???
        $game_system.se_play($data_system.decision_se)
        # ????????????
        $scene = Scene_End.new
      when 6
        $game_system.se_play($data_system.decision_se) **************** (this was added by me...)
        $scene = Scene_Points.new
      end
      return


hope that helps...? >.>

and to irgna... i bet he wouldn't... i modded mine...
----Current Games working on----
--Rage O' Delusion - Overall Percentage Finished : 4% -- Expected release... Unknown
--The Other Dimension - Overall Percentage done : 1 - Expected Release : No time soon...
v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^v^
Feildmaster Productions
Made By One Man Run by the Same...
Making Games for Everyone...
Oh yeah, and everything else web based
For a charge... Of course...

Blizzard

I have one problem and two choices:

Problem:
I need to add some attribute/setting/option/feture to which set up MUST be saved. I can either created tons of extra saving lines like other scripters or I just save it along the operating class or Game_System. I COULD add a few lines to apply new attributes on the map, but I don't want to. It's unecessary complicating the script.
So I choose save fiel corruption due to new attributes. =P

BTW, update to v1.1b.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.



Get DropBox, the best free file syncing service there is!