Hey all,
I just need to know what the script call is for a common event. I've googled it and found "$game_temp.common_event_id = [18]"
but when I put it in the script I get the error "Script interpreter1' line 72: nomethod error occured. Undefined method '>' for [18] Array
I was just wondering if there was another script call, or if there is a way to fix this error.
I basically want an option in the menu to go to a common event, everything works except the common event call!
I would greatly apreciate any help!
Are you trying to run the common event in the menu? Or do you plan on going to the map and letting it run?
I was hoping to run it straight over the menu, so if you choose "Shop" it will open a shop menu (via a common event)
Might be easier to just call Scene_Shop.new
You made it an array it should be just an integer like so:
"$game_temp.common_event_id = 18"
That should work - It does for me.
thats perfect thanks mate!
i clicked the level ++ thing, i assume thats the right thing to do lol
Quote from: LivingstoneIPresume on August 26, 2011, 11:27:19 pm
Might be easier to just call Scene_Shop.new
Also, he's just right >:3
If you want to call the Scene_Shop by a Common event, why not using 'if Input.trigger?(Input::C) ; $scene = Scene_Shop.new ; end' ?
The conditional branch, you can perfectly make it using events. The '$scene = Scene_Shop.new", you'd just replace it with that common event call
:haha:
But then theres the confusing array of $game_temp.shop_goods you have to setup your self. Its not confusing once you figure it out but its a pain in the butt if you're setting it up in a script and you have a lot of items.