The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Crimson~X on October 20, 2010, 01:01:25 PM

Title: Exp Script
Post by: Crimson~X on October 20, 2010, 01:01:25 PM
I don't know if it's been asked before, but is there a custom exp script if so can you post a link and if not can someone please make one?

thanks.
Title: Re: Exp Script
Post by: shintashi on October 24, 2010, 01:31:50 AM
yes custom Exp exists. Robot Unicorn helped me with a script months ago. If you dig through my posts you will find the thread, or you could just click here:

http://rmrk.net/index.php/topic,38266.msg447093.html
Title: Re: Exp Script
Post by: Crimson~X on October 29, 2010, 01:30:27 AM
okay thanks i figured it out, thanks

but is there a way i can make my chars level go up each 10,000 exp?
Title: Re: Exp Script
Post by: shintashi on October 29, 2010, 01:48:24 AM
Quote from: Crimson~X on October 29, 2010, 01:30:27 AM
okay thanks i figured it out, thanks

but is there a way i can make my chars level go up each 10,000 exp?

I think so, you would have to set the base equation of growth/level to be something like "0" or "1" and then set the gain to 10,000.

Something like this (tested)

  def make_exp_list
    actor = $data_actors[@actor_id]
    @exp_list[1] = 0
    for i in 2..100
      if i > actor.final_level
        @exp_list[i] = 0
      else
        @exp_list[i] = ((i*10000) - 10000)
      end
    end
  end
Title: Re: Exp Script
Post by: Crimson~X on November 02, 2010, 01:20:50 AM
man thats fucking awesome thanks so much!! I've been waiting for this sorta thing for to long *snicker*

And to other people who dont know much about scripting such as myself put this part of the script in Game_Actor line 91-93

[spoiler]  def make_exp_list
    actor = $data_actors[@actor_id]
    @exp_list[1] = 0
    for i in 2..100
      if i > actor.final_level
        @exp_list = 0
      else
        @exp_list = ((i*10000) - 10000)
      end
    end
  end
[/spoiler]

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fi1034.photobucket.com%2Falbums%2Fa430%2FFvckYouX%2Fexpscript.jpg&hash=78b29592338bad137824bb3f6d5d6c31ef3170c4)

Thanks shintashi, that helped me alot! (hopefully it helps some other people.)