Make the curtains close

Okay so im using the rpg maker default curtains which take up two squares so I don't know how to make them close together. Is there anyway I can do that? I'm stumped i've tried everything. I can make the bottom part close but i can't make the top one close any help on the event would be nice 🙂) thanks again
if it's 2 events, you can close them with the same switch,
also possible with a scriptcall, which I had somewhere,
to check if the MapID, SwitchID = on or false, if it is,
thier SS goes ON or OFF.

I save many things, but I need to look for this one.

EDIT:
here is the scriptcall you need:
$gameSelfSwitches.setValue([mapId, eventId, 'selfSwitch'], 1)

0 = OFF/false, 1 = ON/true



change MapID, to the ID of the map i is in,
EventID to the event number,
SelfswitchID (A, B,C, or D).
Spoiler: Your reply
if it's 2 events, you can close them with the same switch,
also possible with a scriptcall, which I had somewhere,
to check if the MapID, SwitchID = on or false, if it is,
thier SS goes ON or OFF.

I save many things, but I need to look for this one.

EDIT:
here is the scriptcall you need:
$gameSelfSwitches.setValue([mapId, eventId, 'selfSwitch'], 1)

0 = OFF/false, 1 = ON/true



change MapID, to the ID of the map i is in,
EventID to the event number,
SelfswitchID (A, B,C, or D).
How would I let the player open them again?
same as above, 1 if it's ON, on page 2, turn it OFF, so it will toggle on and off.
Spoiler: Your Post
same as above, 1 if it's ON, on page 2, turn it OFF, so it will toggle on and off.
I'm trying to do this but it's not working
two events.png
it mostly work with switch ON, and Switch OFF, can you make a screenshot?
because it should work though.
Spoiler: Your Post
it mostly work with switch ON, and Switch OFF, can you make a screenshot?
because it should work though.
Spoiler: Top Curtain 1
Top Curtain 1.png

Spoiler: Top Curtain 2
Top Curtain 2.png
Spoiler: Bottom Curtain 1
bottom curtain 1.png
Spoiler: Bottom Curtain 2
Bottom curtain 2.png
sorry im just utterly confused lol
try the follow, while the top event is event 12, you place 10, but
also, map 002 = just 2.

on the bottom one one, do.

page 1
Selfswitch A = ON

Page 2
Selfswitch A = OFF.

on the top window, try:

if: Script: $gameSelfswitch.value([2, 12, "A"], 1);
Selfswitch A = ON
end

on the page 2, same as above, but change 1 to 0 and Selfswitch A = OFF.

Else I need to check on my own, but it should link both.
Spoiler: Your Post
try the follow, while the top event is event 12, you place 10, but
also, map 002 = just 2.

on the bottom one one, do.

page 1
Selfswitch A = ON

Page 2
Selfswitch A = OFF.

on the top window, try:

if: Script: $gameSelfswitch.value([2, 12, "A"], 1);
Selfswitch A = ON
end

on the page 2, same as above, but change 1 to 0 and Selfswitch A = OFF.

Else I need to check on my own, but it should link both.
Sorry it still didn't work and i did exactly what you said ; n ;
I need to check it out, try this:

bottom window:

$gameSelfSwitches.setValue([2, 11, 'A'], 1)
SelfSwitch A = ON

on page 2 with condition SS A = ON:

$gameSelfSwitches.setValue([2, 11, 'A'], 0)
SelfSwitch A = OFF


now, on the top window, page 1, keep it the way it is,
on page 2, condition A is ON.

it should toggle automatically, if not, I need to check tomorrow why it doesn't
work, or someone else give you the solution.
Spoiler: Your Post
I need to check it out, try this:

bottom window:

$gameSelfSwitches.setValue([2, 11, 'A'], 1)
SelfSwitch A = ON

on page 2 with condition SS A = ON:

$gameSelfSwitches.setValue([2, 11, 'A'], 0)
SelfSwitch A = OFF


now, on the top window, page 1, keep it the way it is,
on page 2, condition A is ON.

it should toggle automatically, if not, I need to check tomorrow why it doesn't
work, or someone else give you the solution.
No it's still not working 🙁
the scriptcall should work, but I also made a slight error in it.
this is the correct one.

Top window (no switch condition, and page 2 selfswitch A condition.

on the bottom window.

Page 1:
scriptcall:
let kv = [MapID, EventID, SelfSwitchID]; // example: [2, 11, "A"]
$gameSelfSwitches.setValue(kv, 1); // 0 = OFF, 1 = ON
Selfswitch A = ON

on page 2, condition SS A = ON,
let kv = [MapID, EventID, SelfSwitchID]; // example: [2, 11, "A"]
$gameSelfSwitches.setValue(kv, 0); // 0 = OFF, 1 = ON
Selfswitch A = OFF

this should do it.
remember, the scriptcall above can activate any selfswitch on anymap,
not it's own specifically, but also from map 2 and activate on map 7.

Original thread: https://forums.rpgmakerweb.com/threads/make-the-curtains-close.130180/