playMaker

Author Topic: "Choose the Highest" help.  (Read 1745 times)

failtruck

  • Playmaker Newbie
  • *
  • Posts: 6
"Choose the Highest" help.
« 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?

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: "Choose the Highest" help.
« Reply #1 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.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D