Main Menu
  • Welcome to The RPG Maker Resource Kit.

How do you turn scripts on and off? --->[[RESOLVED]]<---

Started by Valcos, March 27, 2007, 03:39:18 AM

0 Members and 1 Guest are viewing this topic.

Valcos

I have this script that you can modify your characters lvl and what weps and stuff like that in game. I was just wondering is it possible to disable that until a surtain point?
Im to cool to have my own signature!!!

Kokowam

Ok. This is a shot in the dark... Add an if statement at the beginning that if OOGABOOGA == true, the rest of the code goes after that. Then add an "end" at the end of the script. Not sure about syntax here and even less sure it will work. XP

SiR_VaIlHoR

Not sure...cause no script exist without end in it's lines.
I have an event that stop all script but to stop only one...i'll search to do this.
I'm the Alpha and the Omega, the First and the Last, the Beginning and the End.

http://qualquek.miniville.fr/
http://www.dailymotion.com/bookmarks/ojah/video/x27l78_jake-simpson-stevie-wonder-isnt-she_music

My padawan (Tsunokiette) and me :p
http://www.team-aaa.com/root/profile.php?enter_id=614556
http://www.esl.eu/fr/player/2609080/
I'm French so forgive my bad english!

Valcos

Im to cool to have my own signature!!!

Falcon

Either use the SDK (it has an enable/disable thing) or do the following.

Go to the script editor, and make an:
if $game_switches[X] == true
Before everything, and then add an end at the bottom of the script.

It may not work, but that's my best idea.

Kokowam

Lol. That's what I was thinking, too XP Then make a call script that turns it off. I think that's how it goes...

Falcon


Valcos

Oh ok. MasterMoo I didnt know what you were saying before but i think you said somewhat of the samething. Thanks for covering that up for me ;D
Im to cool to have my own signature!!!

Kokowam

Quote from: Darklord on March 28, 2007, 01:12:29 AM
That way would just use switch X.
Oh... Lawl... I just saw that it was a global variable so I just assumed... XD Oh, and sorry I couldn't explain it any better, earlier on. I suck at explaining things...

Blizzard

Quote from: Darklord on March 28, 2007, 12:24:39 AM
Either use the SDK (it has an enable/disable thing) or do the following.

Go to the script editor, and make an:
if $game_switches[X] == true
Before everything, and then add an end at the bottom of the script.

It may not work, but that's my best idea.

if $game_switches[X]

is enough.
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!

Kokowam

Awww... Blizzard changed his avatar back to what it kind of was before... Anyways, yay! I learned something new! :D Btw, add "[RESOLVED]" to the title.