New account registration is temporarily disabled.

RM2K3- EVENTING ISSUE

Posts

Pages: 1
Alright here's what I am trying to do. I am trying to make it so the hero walks up to a NPC and you press the button and begin to drink blood from them replenishing your blood gauge and then to stop, you press the same button again (it's a vampire game btw lol). But if you wait to long to press the button it will trigger them noticing you and they face you and say a message then walk away.
I am having trouble making this work as I made it in the NPC event itself and so far I was only able to to get it to trigger the animation, but it stops automatically I think I have the loop and conditional branches setup wrong. Or will something like this need to be setup in common events?

If anyone could point me in the right direction I would appreciate it, as I know I can figure the rest out by myself.
There are many ways to do that.

Not sure if it's the simplest, but here's one:

When you press button on the victim, turn a switch (BLOODDRINK) on.
At the same time, change the value of a variable (let's say, VICTIMNUMBER) to some number that's specific to that victim (like 3).
You'll be using a variable to count time (DURATION). Set it to zero now.
Add a wait until the key is pressed.
Turn switch BLOODDRINK off.

Now make another invisible event on the screen. It's a parallel event turned on by BLOODDRINK.

Add a wait 1.0.
DURATION + 1.

Now make one conditional branch for each victim on that map.
If VICTIMNUMBER = 3 then

Inside this branch, make another branch checking for the duration limit. For example, if the victim will notice you after two seconds.
If DURATION = 2 then
(add victim noticing you event here).

On this same parallel event, below these conditional branches (one for each victim), you can add some commands to specify the gauge replenishing. For instance, if the gauge is tied to a variable:
GAUGEVARIABLE + 1

That's all.
Hmm I probably shouldve mentioned that the FEED tech is gonna be assigned to a number key. since powers/items are gonna be assigned different number keys. The power only initiates when you press the assigned number key. I got the system to somewhat work through a message choice, but i wish to make it initiate after pressing the assigned number key and if it's even possible.
Well...

If you want it to be initiated by a number AND being close to the victim... like getting beside it and pressing 2 instead of ENTER... VERY difficult. Possible, but extremely difficult. I'd recommend... don't.

I'd recommend something like: press 2 to turn "feeding mode" on, and you only feed after you reach the victim and press enter.
Hmm that might actually work. I was thinking of putting like a sneak/stalk mode in the game anyway. so maybe press a # to go into "sneak/stalk mode" then when you press enter or even the assigned feed button it then initiates. I will try doing that with the above mentioned setup you suggested calunio, if I still have trouble I will post here again. Thank you for the replies.
Pages: 1