How to commence hostilities

Post Reply
spriksprak
Posts: 2
Joined: Sun Aug 03, 2014 5:42 am

How to commence hostilities

Post by spriksprak » Sun Mar 19, 2017 3:26 pm

Hi there, I'm trying to create a mission that has some faction fighting. I'd like to be able though to have their ai/faction parameter trigger on the character reaching a certain point (hotspot?) or after a dialogue piece.

Does this exist/is doable yet or should I look at redesigning?

Any help appreciated!

merlyn
Posts: 373
Joined: Fri Aug 26, 2016 2:41 pm
Contact:

Re: How to commence hostilities

Post by merlyn » Sun Mar 19, 2017 5:30 pm

A simple way to do it might be to have a faction added to the player and enemies on spawn, then add a custom hotspot. In the script for that hotspot, when you enter it, check that the character that entered is the player. If it is the player, then remove that faction.

If you are using the Overgrowth campaign hotspot, it may be possible to mod that to add a "goal_N_post" event of "remove_faction <id1>, <id2>" etc, and have a whole group of NPCs have their faction removed. That way you could have a bunch of NPCs on your team, and have them fight a bunch of NPCs on another team, triggered after a dialog finishes.

User avatar
Constance
Overgrowth Modder Deluxe
Posts: 2394
Joined: Sat Mar 17, 2012 2:05 pm
Contact:

Re: How to commence hostilities

Post by Constance » Sun Mar 19, 2017 11:37 pm

You can put this at the end of your dialogue file:
send_level_message "make_participants_aware"
Also set their Focus and Peripheral FOVs to 0 using the parametre menu (U while a character is selected).
This way, once the dialogue is finished, all participants in the dialogue will be aware and combative of each other.

Alternatively, I have this custom hotspot script:
https://hastebin.com/sulacuhani.cs
Upon entry, the characters inside will have their teams changed to whatever the parametre says. The 'Play for NPCs' checkbox decides whether or not this'll work for NPCs. If checked, it'll work for both players and NPCs.

spriksprak
Posts: 2
Joined: Sun Aug 03, 2014 5:42 am

Re: How to commence hostilities

Post by spriksprak » Mon Mar 20, 2017 2:48 pm

Thanks for the responses, appreciate it! Will give them a go

Post Reply