Problem: "villager has joined battle on the enemy side"

Users who are viewing this thread

Nemeo

Sergeant at Arms
I'm sorry I know this has already been dealt with in another topic but I can't find it anymore.

I modified the python files so that enemy parties gang up against the player when nearby and I got this message:

Looter sp has joined battle on the enemy side.

Could you tell me what condition I must add to prevent spawn points from joining the battle please? Or point me to the right thread?
 
Nemeo said:
I'm sorry I know this has already been dealt with in another topic but I can't find it anymore.

I modified the python files so that enemy parties gang up against the player when nearby and I got this message:

Looter sp has joined battle on the enemy side.

Could you tell me what condition I must add to prevent spawn points from joining the battle please? Or point me to the right thread?

pf_disabled? Like in

  ("looter_spawn_point"  ,"looter_sp",pf_disabled|pf_is_static, no_menu, pt_none, fac_outlaws,0,ai_bhvr_hold,0,(-107.73, 16.82),[(trp_looter,15,0)]),
 
MrRoy said:
pf_disabled? Like in

Thanks but this flag is already on.

edit: wait, I think I see what you meant.

edit2: how do you get the flag of a party as a condition?
 
In the script:

Code:
let_nearby_parties_join_current_battle

I removed the 2 lines saying:

Code:
          (eq, ":party_type", spt_kingdom_hero_party),

This line prevented all parties other than lords to join a fight.

BUT it also prevented spawn points to join the fight. So if someone could help a noob to figure out how to exclude all static parties from the fight, that would be kind of him. Pretty please.
 
From what I read from Magelord's tweaks, I must add a check to see if the party is in the partie file. Does anyone know how to do so?
 
Check the party number and verify it his higher than spawns_point_end (all static and special parties are before spawn_points_end).
 
Thanks Twan , I'll try it.

edit: Here is the line which must be place instead of the one you removed. (Twan's code)

Code:
(gt, ":party_no", "p_spawn_points_end"),

It looks like it works.
 
Little update. Villagers and carvans joined the fight. I added these lines:

Code:
          (this_or_next|lt, ":reln_with_player", 0),#dt IA               enemies ally with enemies
          (gt, ":reln_with_enemy", 0),#dt                                  if not allied (not coded here) and enemy with player or player's ally.
          (party_get_slot, ":party_type", ":party_no"), #dt get type of party
          (neq, ":party_type", spt_kingdom_caravan), #dt no caravan should join
          (neq, ":party_type", spt_village_farmer), #dt no village_farmer should join
          #dt(party_get_slot, ":party_type", ":party_no"), #commented: enables bandit teaming up
          #dt(eq, ":party_type", spt_kingdom_hero_party), #commented: enables bandit teaming up

and now villagers join the battle. Any clue :?:
 
Back
Top Bottom