Ok say I want a monster to drop a key, have the player bring the key to a NPC, and the NPC will turn the key into another key that will open a door in a dungeon. How would I do this? Would I use a value-conditional branch event code or? I don't understand variable's at all so any help would be greatly appreciated ^^ thank you!
Announcement
Collapse
No announcement yet.
How would I do this?
Collapse
X
-
Re: How would I do this?
It's not a random battle, right? This only works with event battes.
For this example, lets make shared variable 5 the key related variable. In the event code where you get the key, make shared variable 5 = 1, and give the party Key1. (Key2 is the key that opens the dungeon door.)
Then, on the NPC, do this code:
Val Control Branch: (Shared Variable 5)
Option 1: Shared Variable 5 = 0
*Here, place any code that occurs BEFORE the player finds the key, i.e, what the NPC will say.*
Option 2: Shared Variable 5 = 1
Display Message: "Liek HEY D00d u got key!!!1!11" (or whatever he says)
Remove Item: Key1
Give Item: Key 2
Display Message: "Mr. Dude exchanged key 1 for key 2!"
Variable 5 = 2
Option 3: Shared Variable 5 = 2
*Any code that occurs AFTER the NPC gave the characters Key2.*
-
Re: How would I do this?
I don't get this part lol ; ; How do I make the boss to drop the key?Originally posted by hitogoroshiIt's not a random battle, right? This only works with event battes.
For this example, lets make shared variable 5 the key related variable. In the event code where you get the key, make shared variable 5 = 1, and give the party Key1. (Key2 is the key that opens the dungeon door.)
Comment
-
Re: How would I do this?
Actually, as the boss would need his own monster party, you could make it be dropped by the boss in the items section of the monster party. You see, key1 is not nessacary, only the variable. The code would function the exact same without the key, it's just for the players benefit.
Comment
-
Re: How would I do this?
...thats not variable related in the slightest. Giving the party the key in the code is simply Party Control (I think): Give Item. Whereas for the boss it's just done in the monster party item list.Last edited by hitogoroshi; 06-27-2006, 05:00 PM.
Comment

Comment