BattleForge Wiki
Register
Advertisement
Description
The following script will change the owner of a given entity immediately upon game start. When changing ownership you should set both the team and player flags or you will get odd results.
Code
State
{
   StateName = "INIT",
   OnOneTimeEvent
   {
      Conditions =
      {
      },
      Actions =
      {
         EntityTeamSet {
            Tag = "gift",
            Team = "tm_Team1"
         },
         
         EntityPlayerSet{
            Tag = "gift",
            Player = "pl_Player1"
         }
      }
   };
};
Notes
  • "gift" is the tag given to entity you are giving to a player.
  • "tm_Team1" and "pl_Player" are the names of the team and player, respectively.
  • 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 Event Condition in the condition section to force this script to only trigger when the condition is true.




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