spaceperson13

Warper
Member
Joined
Jul 1, 2017
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RM2k3
I'm trying to put a simple kill quest into the game but I'm running into kind of a strange problem, I think.

The Quest: There's a sprite standing in the way of the path - after talking to the sprite, she tells you to kill 10 goblins (specifically goblins, not the other monsters in the troop) and she'll get out of the way. This is what I'm having difficulty with:

- The goblins in these troops are set to increase the variable "goblins killed" by 1 when their HP is at 0
- The sprite event is set disappear when "goblins killed" is at least 10
- With one troop, it doesn't register that a goblin has been killed at all. With another, it behaves as if killing 3 is the same as killing 10. With another troop, killing 2 goblins is read as killing 3 (there are 3 monsters in this troop, but not all are goblins).

I have no idea what's going on. Only the goblins in these troops are set to increase the variable, but they are doing it in such an unpredictable way and I cannot think of any way to navigate this roadblock.

I'm sorry if this question has been asked a million times before, but I can't wrap my head around it for the life of me.
 

spaceperson13

Warper
Member
Joined
Jul 1, 2017
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RM2k3
Okay, after some fiddling around, it turns out that the variable is increasing with every turn the goblin's HP is at 0. So if there are 2 enemies, 1 a goblin, and you kill the goblin 1st, it will increase the variable by 1. That in mind, it might take another 4 turns for the 2nd enemy to die, all the while the goblin's HP is still at 0. So the variable increases by 5 in that fight instead of just 1.

How do I fix it???
 
Last edited:

Latest Threads

Latest Posts

Latest Profile Posts

It does sometimes get a little embarrassing that I often come here to ask for help with something and seldom have anything to actually show for it. If there is one thing though I can commend myself for, it's for sticking with an idea I've been tinkering with for this long now and gradually making headways. Even though I've been reserved about my progress, I can say I'm farther now than where I initially started.
I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO
Have seen some of my favorite people here posting and helping others with questions today -- love to see it!
Haven't been on here actively in awhile, project is going strong my biggest issue is the STORY, i'm refining the plot and learning so much i decided to take a writers class to improve even more but the programming and functionality of the game is stepping up nicely!
Hi everyone! Here's what I'm working on today! It's one of the dorms on campus. I know I said I wouldn't use assets but I reused a few things from the cafeteria hehe.
FCuxBOMXMAICK5e

Forum statistics

Threads
116,127
Messages
1,096,000
Members
151,549
Latest member
nbayoungboy
Top