Jump to content


Photo

Changing Alliances

world builder mapping scripts map.ini changing teams

  • Please log in to reply
1 reply to this topic

#1 powerkartoffel

powerkartoffel
  • New Members
  • 3 posts
  • Location:Chile Stgo
  • Projects:BFME2 Maps

Posted 21 January 2021 - 12:50 PM

Hi, is there a way to bring a human traitor in a heromap who can control spells and units of the opposite Team, and can change his team in the end to enemy?



#2 seemann

seemann
  • Members
  • 231 posts
  • Location:Bucharest

Posted 24 January 2021 - 09:21 PM

I don't know why i can't share screenshots but i'tt do my best to describe this:

 

Open your map in the WorldBuilder.

 

Name your "human traitor" ..let's say John

 

Go to Edit Scripts (CTRL + ALT + R)

 

Create New Script 

 

At Script Condition put ..whatever you want, i.e. when you want the unit to change faction

 

At Action if true: go to Unit (includes Structures) - Other  --> Allegiance

 

Play around with the 2 options, like: 
Force unit to join team --> Unit named John will join team named Team B

 

Another way is to go to: Team -- Action --> Capture-Recruit    and play around with those options

 

Good luck!


Apocaliptica & Nina Hagen - seemann




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users