BattleForge Wiki
Register
Advertisement
Description
The following condition will trigger whenever an entity health drops below a certain percentage.
Code
State
{
   StateName = "INIT",
   OnEvent
   {
      Conditions =
      {
         EntityHealthIsLess {
            Tag = "creep",
            Percent = 50
         }
      },
      Actions =
      {
         <do stuff>
      },
   };
};
Notes
  • "creep" is the tag given to the entity you want to monitor.
  • Percent is the health percentage on which the event triggers. (Not 100% of the correct number range.)
  • You will need to add the tag from the Entity Properties window.
  • You may use any tag name you wish.
  • You can add any Script Action in the action section to do something useful with this script.




Skylords

Battleforge has been revived by a group of passionate players and developers under the name Skylords Reborn


It is a fully functional, community-made, non-profit and completely free-to-play relaunch of the game. The relaunch has been worked on for several years, and receives regular updates.

The new Wiki can be found here: Skylords Reborn Wiki Page



.
Advertisement