Hi guys
I try to create an event where the player can not leave the room before the end of another event. I try to made an event in 2 step. The firts one do not need any condition and the player will back off with an NPC telling him not to leave. The second one need the condition self switch B on and it’s the transfert command. The player needs the do another event that will activates the self switch B. But even if the self switch B is (suppose to be) on, the transfert do not work. And if I press the action button, it’s the first part that occure even if the it’s is set on player touch.
Can someone help me please?
if selfswitch B is on while page 1 = empty, it cannot trigger it, unless you told it
so in the other event.
best way is below character, with touch event (like you transfer the player).
if: switch x = ON
transfer player
else
NPC: or event or whatever,
you cannot leave yet, compleet the mission or talk to <name> for information.
end
in this example, I use a normal switch (selfswitch will work) but you need
a scriptcall to turn it on, this switch x can also be used on the other event,
that go from page 1 to page 2, or to 3, so it is ready to leave.
there are other methodes as well, but it also depends on how you event
you events and mechanisme that suits your need.
another simple way is page 1: same as character and player touch,
page: 1
you cannot leave yet
page 2: below character, and transfer with condition switch ON
transfer wherever he need to go.
Thanks a lot
I just learn that self switch only affect the event. Normal switch affect the area. Witch means that I have to use normal switch.
you can use selfswitches anywhere in any map, than you use a scriptcall
in the other event between those lines:
$gameSelfSwitches.setValue([this._mapId, EVENT_ID, 'SELFSWITCH'], true/false);
so for example:
$gameSelfSwitches.setValue([this._mapId, 14, 'A'], true);
this will activate selfswitch A on this MAP, of Event 14 to true.
just make 2 events
event 1: creatively blocking event2: page 1 If "questswitch=off" then "do this or you cant leave", move hero away, else SetSelfSwitch A to ON,
page2 Switch A ON: blank page, event below character.
event 2: on the door or whatever, do a simple transfer command
Ooooohhhh
I found my mistake. It’s not about switches. In the animation of the first event an NPC is leaving the room by the exact same door. For the animation, I made the NPC invisible so we think he left the room. But the only thing I did, is blocking the exit with this invisible NPC. I have to find out how to make him leave the room without blocking the door.
Thanks
Seriously
I do not know why, but it’s like the self switch B do not turn on. I made an event with the command of turning the self switch B on and another event like: if self switch B = on, blabla
Else, another blabla
But even if I do the event thats suppose to turn the self switch B on, the other always do the Else part.