RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Need help with something

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 87
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.
« Last Edit: May 21, 2007, 12:11:30 PM by Zeriab »

******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
It's a script issue. Post this in scripts.

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

That should work.

**
Rep:
Level 87
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 ^_^

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
*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 ^_^

Code: [Select]
$game_system.difficulty == "Aeion Legend"


******
Revolution is not a bed of roses.
Rep:
Level 91
Project of the Month winner for July 2009
My bad, forgot to throw in the global variable sign :P

Zeriab's way should work.

**
Rep:
Level 87
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
>

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
It's $game_system.difficulty not $game.difficulty

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

**
Rep:
Level 87
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

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
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:
Code: [Select]
$game_system.difficulty == 6

**
Rep:
Level 87
w00t! It worked! Thanks for all the help Zeriab^_^.