- Joined
- Dec 31, 2015
- Messages
- 31
- Reaction score
- 1
- First Language
- Spanish
- Primarily Uses
Hello everyone!
I've been searching and trying different things all over internet, without luck... I would appreaciate if someone gives me some light on this...
WHAT I AM TRYING TO DO.
Originally, the idea is to create a Resident Evil style gameplay, I have all set already: menu with pictures, weapons, limit items, submenus, grid,etc...but I was wondering a way to "Use" the item from the menu and activate the event in front of the player...
For example, I have a key and want to open a door with it.
- I go to menu, select the key - Use it- and a common event with nothing on it occurs.
I guess the solution would go on this common event.
I already have the variable to save the ID of the last used item (KEY), then compare it in a conditional branch indide the event (DOOR) and that should be it...
Example:
DOOR EVENT - TRIGGER BY ACTION KEY
if (lastItemUsedID == n) {
Door open
lasiItemUsed -1
}
The problem is that I want to "activate" (trigger,autorun) the event in front of the player...but I can't do it.
Another solution could be by "forcing" to press the "Action Key" just after the item used (call from a script), so it would activate the event and then the conditional branch would run...but I haven't found the way to do it.
All the methods are for checking and requires the player to press the key itself...I want to press it from a script.
Hope your guys get it. My brain's killing me
Thanks in advance
PD: Sorry for my English.
I've been searching and trying different things all over internet, without luck... I would appreaciate if someone gives me some light on this...
WHAT I AM TRYING TO DO.
Originally, the idea is to create a Resident Evil style gameplay, I have all set already: menu with pictures, weapons, limit items, submenus, grid,etc...but I was wondering a way to "Use" the item from the menu and activate the event in front of the player...
For example, I have a key and want to open a door with it.
- I go to menu, select the key - Use it- and a common event with nothing on it occurs.
I guess the solution would go on this common event.
I already have the variable to save the ID of the last used item (KEY), then compare it in a conditional branch indide the event (DOOR) and that should be it...
Example:
DOOR EVENT - TRIGGER BY ACTION KEY
if (lastItemUsedID == n) {
Door open
lasiItemUsed -1
}
The problem is that I want to "activate" (trigger,autorun) the event in front of the player...but I can't do it.
Another solution could be by "forcing" to press the "Action Key" just after the item used (call from a script), so it would activate the event and then the conditional branch would run...but I haven't found the way to do it.
All the methods are for checking and requires the player to press the key itself...I want to press it from a script.
Hope your guys get it. My brain's killing me
Thanks in advance
PD: Sorry for my English.
Last edited:

