Jump to content


Photo

Build a team

simple but i don’t know how

  • Please log in to reply
2 replies to this topic

#1 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 26 July 2020 - 12:26 AM

What I am trying to achieve 

Get a horde of archers on top the Gondor Castle walls from BFME1 

 

What I can do 

spawn a named team , nothing else 

 

Move an existing pre-placed team to the wall I.e a horde is named ‘ARCHERS’ then I move this horde to wall 

 

What I cannot do 

have a team be built / recruited from the archery range , have team move to wall 

 

If I can understand how to build or recruit a team , I can get them  to move to the top of the wall 

 

The team is set in WB , Skirmishmen 

Priority 500 , Build for 500

Automatically reinforce , Team members are AI recruitable  
the On Created - script - move to wall , does not work 

 

I have an object that spawns  on top of the wall , so I just tell team / unit to go to object 

 

It must be for Skirmish Men AI

 

 

PS 

Last to do was to have manned walls and Siege towers and ladders attack walls 

but I need to know how to build the named team , and then execute the move or attack command 


Edited by JUS_SAURON, 26 July 2020 - 12:47 AM.


#2 Fudge

Fudge

    title available

  • Project Team
  • 531 posts
  • Location:Devon, England
  • Projects:Luckily AotR Mapping

Posted 26 July 2020 - 04:53 PM

Hello,

The way I do this for the AotR besiege maps is as follows.

  1. Set a waypoint "home position" for this team at the desired location (including correct height)
  2. Add that home position to the team's settings
  3. Create a generic subroutine script (untick deactivate on success) that simply goes "IF True" then team <this team> moves to home position
  4. Add that subroutine to the On Create field

That should work? However if it doesn't let me know. It could be your teams are being merged onto teams with higher priority? You could untick "Team members are AI recruitable"

With regards to building the team, what are the build conditions defined in the team settings?

Cheers


Edited by Fudge, 26 July 2020 - 04:55 PM.


#3 JUS_SAURON

JUS_SAURON

    El Shaddai

  • Members
  • 1,581 posts
  • Location:Trinidad
  • Projects: BFME2 MOD - Power Of The Ring
  •   INI Coder

Posted 27 July 2020 - 12:54 AM

I can move a horde or hero that is pre-placed on the map , and NAMED , eg ARCHER1

they move fine 

but I want a skirmish ally to build , from their archery range , a horde that then moves to the point 

No conditions , really , just need 2 horde to do this , once they have an archery range to come out from 
If they die they are rebuilt 

they should ideally stay in the wall until dead 

 

the map is not any special map , it is basically a normal skirmish map , that has a Gondor BFME1 Castle 

I hope I don’t have to try to re-code the Skirmish AI to do this 
 

the moving is not the problem , in fact this seems to be easy 

the building and name referencing a team I could never do properly 

 

I saw a post about setting up - object lists - but could not follow I completely 


Edited by JUS_SAURON, 27 July 2020 - 12:54 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users