PLEASE HELP WITH EVENT PROBLEM IN RPG MAKER MV....
Posts
Pages:
1
Hello, I have been having a hard time trying to figure out how to do this and would appreciate any assistance. I want to have a parallel event that will teleport the player to a different map as soon as he has 10 different items in his inventory(different jewels). The items are given to the player randomly so I want the event to constantly check to see if he has the 10 items and then auto teleport.
Okay.
Control Variable:
Variable
Single 0001: Item
Operation: Add
Operand: Constant: 1
For each item event, do the following.
Create an event, set it to Action Button and do the following.
Use this exact (well, maybe not this exact. You have your own names and maps after all) code for all of your items that are supposed to do this.
What's going on? By setting your variable to add, you're telling it to count every time an operation that calls it is activated. So, if each item activates that variable, that variable will count that item. On the next page, the condition branch is checking to see if that variable has reached ten. If it hasn't, nothing happens. If it has reached ten, it will teleport to coordinates 1,1 on Map 1...or wherever you set it to teleport.
Control Variable:
Variable
Single 0001: Item
Operation: Add
Operand: Constant: 1
For each item event, do the following.
Create an event, set it to Action Button and do the following.
@>Change Items: [item]+1
@>Play SE: 'Item3'
@>Text: -,-, Normal, Bottom
You found the item.
@>Control Variable: [0001: Item] +=1
@>Conditional Branch: Variable [0001:Item] == 10
@>Transfer Player:[001:MAP001](1,1)
@>
: Else
@>
: Branch End
@>
@>Control Self Switch: A=ON
Use this exact (well, maybe not this exact. You have your own names and maps after all) code for all of your items that are supposed to do this.
What's going on? By setting your variable to add, you're telling it to count every time an operation that calls it is activated. So, if each item activates that variable, that variable will count that item. On the next page, the condition branch is checking to see if that variable has reached ten. If it hasn't, nothing happens. If it has reached ten, it will teleport to coordinates 1,1 on Map 1...or wherever you set it to teleport.
Pages:
1














