RMRK is retiring.
Server is paid up for the rest of 2026, but the forum may go after that. See here for more information. Please archive or save anything you would like to keep before 2027.
Main Menu
  • Welcome to The RPG Maker Resource Kit.

Theo - Difficulty Setting

Started by TheoAllen, April 14, 2013, 10:00:40 PM

0 Members and 1 Guest are viewing this topic.

TheoAllen

Difficulty Setting
Version : 1.2
Type : Gameplay add-on

Introduction :
Inspired from The Elder Scroll series. This script allow you to modify game difficulty by changing the enemy parameters. The difficulty stored in $game_variables.

Features :

  • Change Enemy parameter
  • In Game difficulty
(Requires YEA-SystemOption)
[/list]

Screenshot

combined with YEA System Option (Screenshot from my game)

Script:
Get it from here => http://pastebin.com/VB5QUann

How to use:
- Put this script below material but above main.
- Decide the variable ID for game difficulty
- Then modify the percentage array

Credit:
You may credit me. TheoAllen

Note:
- I hope this script is useful for everyone
- If I've made some grammatical errors, it because my main language isn't english.
My scripts collection :
http://theolized.blogspot.com/
Sorry if I made it in Indonesian

Supporter of :


Make your own party composition based on 20 playable characters :

Simple Mango

Hey, really like the way you have this script set up, makes it very useful.

But there's a game breaking bug that brings up this error when using Shop Processing:

Script 'Difficulty Setting' line 200: NameError occurred.

undefined local variable or method 'theolized_diff_start' for
#<Scene_Shop:0x94 d1ee0>

Note that all I did was put this in a blank project and open up the shop processing, as a test, and it still happened.

Thanks for all your work~
I am the Simple Mango.
Are you the Complicated Mango?
:3

LoganF

It's a typing error.

Head to line 200, you will see this method and the offending line:


alias theolized_diffset_start start
def start
  theolized_diff_start
  @diff_hash = THEOLIZED::DIFFSETTING::DIFFICULTY_HASH.dup
end


Change the line (200)


theolized_diff_start


to:


theolized_diffset_start
(Why do I always feel like it's the end of the world and I'm the last man standing?)

TheoAllen

My bad. As LoganF said, it was a typing error.
Anyway, thanks for report. I've fixed it in pastebin
My scripts collection :
http://theolized.blogspot.com/
Sorry if I made it in Indonesian

Supporter of :


Make your own party composition based on 20 playable characters :

Simple Mango

Ahhh, that explains it. Thank you much~
I am the Simple Mango.
Are you the Complicated Mango?
:3

TheoAllen

Small fix update. A guy in rmweb.com just found a new bug in scene shop (and it's about typing error again)

If u already use this script, just change line 207 to
@diff_hash.include?(var_value)
And I also updated bug fix in pastebin.
My scripts collection :
http://theolized.blogspot.com/
Sorry if I made it in Indonesian

Supporter of :


Make your own party composition based on 20 playable characters :