VDechand

Villager
Member
Joined
Apr 27, 2022
Messages
14
Reaction score
3
First Language
German
Primarily Uses
RMXP
Hello, ich have a little problem. I have a crafting script, if i close the craftwindow the menu ist popping up. If i switch the switch menu off bevor the craftmenu is starting the normal menu don´t pop up pressing B after i close the crafting system. The switch for the menu is switch 24. The script part to close the craftmenu is this

Code:
def update_material
   # if B Button is pressed
   if Input.trigger?(Input::B)
     # Play cancel SE
     $game_system.se_play($data_system.cancel_se)
     # Switch to map screen
     $scene = Scene_Map.new
     return
   end

So, how can i switch the switch 24 to on?
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
45,524
Reaction score
16,416
First Language
English
Primarily Uses
RMMV

I've moved this thread to RGSSx Script Support. Thank you.



This is for XP
 

kyonides

Reforged is laughable
Veteran
Joined
Nov 17, 2019
Messages
882
Reaction score
425
First Language
English
Primarily Uses
RMXP
$game_switches[24] = true

Place it above $scene = Scene_Map.new
 

Latest Threads

Latest Profile Posts

Learn how to do custom face parts with my latest tutorial!
Generatorpartsfromscratch.png
The Legion
T7T0hR2.gif
Made a title screen, and by ''made'' I ofc mean I slapped a simple title on some cool art I bought xD This side project might be fun.

sIMPLE.png
CDF.png

Trying for a Classical RPG with Pokemon Elements. Capture monsters like Zombies and Harpys and use them on your team.
ow28O4A.png

Astarte in her usual demeanor: mocking people.

Forum statistics

Threads
129,873
Messages
1,205,847
Members
171,050
Latest member
vulkich
Top