I wanted to know how I could make it so that in a dungeon, when you approach the door, which is locked, it says that you need a key. (variable at 00 changes to 01) Then, when you go to a nearby town and talk to someone, if the variable is 00, it gives you a rejection response, but if it's at 01 then the person willingly gives the key (treasure) This then sets the variable to 2. Once at 2, when you go back to the dungeon and re-approach the door, there's some dialog saying that it fits, and the door unlocks/opens. Any ideas on how I do that? I'm pretty tired and it's possible I'm just being stupid. But then again, i don't know how to lock/unlock doors... So I'm all confuzzled.
Announcement
Collapse
No announcement yet.
How can I...
Collapse
X
-
Re: How can I...
Okay. In the NPC's event code put the following (not exact, but accurate enough):
>Value Conditional Branch (2 choices)
-> Variable1 = 0
-> message display: "(whatever the rejection is)"
-> Variable1 = 1
-> message display: "(whatever you want said)"
-> modify variable: Variable1 = 2
Now, in a dungeon place an unlocked door in a hall. place an invisible event right in front of the door and set the trigger to button. In the event, use the following:
>Value Conditional Branch (2 choices)
-> Variable1 <2
-> message display: "(whatever you want said)"
-> Variable1 = 2
-> message display: "Your key fits! (or whatever)"
Now, just make sure you set up other events that increase or modify Variable1 so it equals 1and/or 2. Oh, and it's easy to locj/unlock doors:
1st, place a locked door in a dungeon.
2nd, in the item editor, create a treasure.
3rd, select the locked door in the layout editor.
4th, make said treasure the door's key.
"You're dead if you aim only for kids. Adults are only kids grown up, anyway."
-Walt Disney





Comment