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.

[RESOLVED] Need help with something

Started by Rathalos888, May 20, 2007, 04:25:21 PM

0 Members and 1 Guest are viewing this topic.

Rathalos888

Alright, so I'm using this difficulty script-

http://rmrk.net/index.php/topic,14202.msg180623.html#msg180623

And I was wandering, how could I make it so that if you elec one of the harder difficultys, an event will occur
EX: (player starts on hardest difficulty)
Game starts -LEVEL+5-
Learned skill- Fira

Yeah... sorry if this is vague and whatnot.

Also, sorry if this is the wrong board for this =P. ???

Also, if you cannot find the script, scroll down, it's near the bottom.

Falcon

It's a script issue. Post this in scripts.

Use this in a contional branch:
game_system.difficulty == "Difficulty Name"

That should work.

Rathalos888

Sorry about putting this in te wrong place =P. Anywho, I get a name error that looks like this

????????? Name Error ????????????

undefined local variable or method 'game_system' for #<Interpreter:0x4670b38


O_O yeaahhhh... Also, this is what the event says

Conditional Branch: Script: game_system.difficulty == "Aeion Legend"
Change skills
Change lvl
blah
blah

Please help ^_^

Zeriab

*moves*

I haven't look at it or anything, but it looks like you are trying to use a global variable. Remember the $ in front of the variable name when dealing with global variables ^_^

$game_system.difficulty == "Aeion Legend"


Falcon

My bad, forgot to throw in the global variable sign :P

Zeriab's way should work.

Rathalos888

Eh, it still doesn't work, except now I don't get an error, it just sorta overlooks it, and delets the event, so to speak.

Example:
Starts on Aeion Legend
event
>Conditional branch: script: $game.difficulty == "Aeion Legend" (or something like that, whatever zeriab said, lol)
>Change level- Zan Vossmore +4
>Change skills Add Cure
>Else Handler
>

Zeriab

It's $game_system.difficulty not $game.difficulty

If it still doesn't work try putting this in a call script:
p $game_system.difficulty
You should get a message. Please take a screen shot of it and post here.

Rathalos888

O_O well this was an unespected result...



also, sorry for being such an annoyance lately >_>.


Also, if you can't see the image, here.
http://img517.imageshack.us/my.php?image=sauceyhn7.jpg

Zeriab

So it was a number...

Am I correct in say that you have 6 difficulty levels?

Either way. The solution is to use the number instead:
$game_system.difficulty == 6

Rathalos888