BattleForge Wiki

Action Script Example - Power Give or Take

1,156pages on
this wiki
Add New Page
Talk0 Share
The following script demonstrates how to give or take power from a player.
   StateName = "INIT",
      Conditions =
      Actions =
         PlayerPowerGive {
            Player = "pl_Player1",
            Amount = 500

         PlayerPowerTake {
            Player = "pl_Player2",
            Amount = 500
  • Player is the player you want to give or take the power from. You can use "ALL" to give or take power from all players.
  • Amount is the amount of power you want to give or take.
  • If you attempt to take more power than a player has, their power will be set to zero.
  • You can add any Script Event Condition in the condition section to force this script to only trigger when the condition is true.


Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.