Ok, this might be a bit complicated to explain, but...
What I'm after is a trigger that will count the amount of kills made for the match, once x amount of kills is reached, the trigger event goes off. This way, players can fight a megacrapton of the monsters they WANT to, rather than x amount of each individual monster. Does anyone know how to impliment this?
Kills made Trigger?
Re: Kills made Trigger?
Im not sure what you mean.
you can make a custom mutator to do that.
take a look at the fatboy mutator.
code will be something like this
if (killer.playerreplicationinfo.score >= score)
{
do stuff
)
you can make a custom mutator to do that.
take a look at the fatboy mutator.
code will be something like this
if (killer.playerreplicationinfo.score >= score)
{
do stuff
)
-
- Average
- Posts: 61
- Joined: Thu Jun 03, 2010 3:53 pm
Re: Kills made Trigger?
Not sure how it works, it depends on a few things, but if:
1) Monster cause an event when they die and
2) You can change the event they cause
then you could just make a counter, set to the number of monsters you want to have to kill, then have the counter trigger the whatever you need triggering.
1) Monster cause an event when they die and
2) You can change the event they cause
then you could just make a counter, set to the number of monsters you want to have to kill, then have the counter trigger the whatever you need triggering.
Re: Kills made Trigger?
Can't use counters, because I'm using ThingFactories, which automatically set the monsters to their event, which stops me using a universal event :/
-
- Average
- Posts: 61
- Joined: Thu Jun 03, 2010 3:53 pm
Re: Kills made Trigger?
If ThingFactories set the event, can't you tell them what to set it to? And if it's not configurable, you could always make a subclass and override the function that sets the event.
Re: Kills made Trigger?
The Thingfactories set the event to match their tag so that the death of the monster triggers them to spawn another :/
-
- Average
- Posts: 61
- Joined: Thu Jun 03, 2010 3:53 pm
Re: Kills made Trigger?
Ahh, I see. On second thoughts ,couldn't you make a subclass of the ThingFactory that causes a event when it is triggered, and use that for a counter?
Re: Kills made Trigger?
But then I have the problem of if a player runs over the spot that triggers it 500 times, it triggers a boss fight without the player killing anything :S
-
- Average
- Posts: 61
- Joined: Thu Jun 03, 2010 3:53 pm
Re: Kills made Trigger?
I mean, in the ThingFactory code, add a part that, when it spawns a new monster, it calls a second event which is connected to your counter. This won't trigger by touch, unless the code tells it to.