Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: failtruck on April 24, 2013, 04:45:49 AM

Title: "Choose the Highest" help.
Post by: failtruck on April 24, 2013, 04:45:49 AM
HI,

I am trying to develop a basic "Threat Manager" in Playmaker.  The basic function of this is
a) Every time a player does damage he raises his threat
b) threat diminishes over time
c) monsters target the play with the highest threat

I've got a) and b) working, but I just cant get c) to work.  In fact I cant even work out, HOW I could get c) to work.

Does anyone have any advice on how I would go about implementing this?
Title: Re: "Choose the Highest" help.
Post by: Lane on April 24, 2013, 07:07:49 AM
On the FSM's that are subtracting health just also have them add to a global variable (for threat value) some number.

You could have a manager object that constantly subtracts a small number every frame from the threat level to have it continually diminish.