Good evening,
I've been working on a game where, at midnight each night, a player-selected character is sacrificed to a monster and a random townsperson is murdered by a killer.
I'm having a lot of trouble figuring out how to map out the common event for selecting the killer's victim.
The first few nights it works, but it always ends up choosing a variable of someone who is already dead or the killer in the town him or herself.
I need the event to know to reselect the variable until it's chosen someone eligible to be the killer's victim. I've tried it with a loop (which I'd admittedly never practiced with before), and I tried it with calling the same common event again when it chooses an ineligible townsperson (which resulted in a common event exceeds 100 error).
Any advice or suggestions would be so appreciated!
I'll post a screenshot of part of the common event below.
I've been working on a game where, at midnight each night, a player-selected character is sacrificed to a monster and a random townsperson is murdered by a killer.
I'm having a lot of trouble figuring out how to map out the common event for selecting the killer's victim.
The first few nights it works, but it always ends up choosing a variable of someone who is already dead or the killer in the town him or herself.
I need the event to know to reselect the variable until it's chosen someone eligible to be the killer's victim. I've tried it with a loop (which I'd admittedly never practiced with before), and I tried it with calling the same common event again when it chooses an ineligible townsperson (which resulted in a common event exceeds 100 error).
Any advice or suggestions would be so appreciated!
I'll post a screenshot of part of the common event below.