Aller au contenu

Faction question.


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
I've never used factions other than making a neutral one and giving it to everybody however this time I need to do something different so I made another neutral to everybody faction but I want it to change to hostile to the PC & co.

So I figured I could do this during a conversation and setting the faction as hostile by giving it a minus using the generic faction action that comes with the conversation editor.

Only thing is I also want some npc's to go hostile against the new "anti PC" faction, do they need to have their own faction or will they just side with the PC when he/she's being attacked ?

If I set them to defender will they still retain their neutral stance or do they fight anything that's hostile even if it's not against them ?

All ideas welcomed, thank you..

#2
ColorsFade

ColorsFade
  • Members
  • 1 271 messages
Defender will defend the PC. So whatever is hostile to the PC, the Defender faction will attack (that's been my experience anyway, everyone else feel free to correct me).

This is a case where scripting would really help you out. There are some Group functions that allow you to tell one group to attack another group. If I recall, you don't want to touch scripting, but that would be the easiest way to go. Then you'd just need to run your script in the proper conversation node as an action script, and it would all work.

#3
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
ColorsFade.. I might have to resort to scripting but as you know I'll try my best not to. I hope you're right aboout the defender defending the PC and not themselves from enemies as that will solve my problem.. Fingers crossed.

The thing is that the defender faction is set as neutral to the faction that becomes hostile to the PC.

Modifié par Iveforgotmypassword, 05 avril 2013 - 05:24 .


#4
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 603 messages
I would use a custom faction for the NPCs and a different custom faction for the hostiles. In the conversation change the faction of the NPCs to defender and change the faction of the hostiles to hostile. You can use my ga_bb_set_faction script (used in King's Festival and Silverwand Sample Campaign) to set factions easily without needing to use groups. It uses tags to identify who to change rather than the group functions. You shouldn't need to do any scripting.

Regards

Modifié par Kaldor Silverwand, 05 avril 2013 - 07:51 .


#5
ColorsFade

ColorsFade
  • Members
  • 1 271 messages

Kaldor Silverwand wrote...

I would use a custom faction for the NPCs and a different custom faction for the hostiles. In the conversation change the faction of the NPCs to defender and change the faction of the hostiles to hostile. You can use my ga_bb_set_faction script (used in King's Festival and Silverwand Sample Campaign) to set factions easily without needing to use groups. It uses tags to identify who to change rather than the group functions. You shouldn't need to do any scripting.

Regards


In experimenting with this, I concur: this seems to be the easiest approach. 

#6
Guest_Iveforgotmypassword_*

Guest_Iveforgotmypassword_*
  • Guests
Kaldor Silverwand.. Thanks for the kind offer and I am indeed going to use a custom faction now for my PC's allies as I ran a test and defenders don't defend the PC they are strictly self serving and selfish individuals !

However I did discover that changing the faction reputation of one defender towards the PC's enemy will make all defenders attack the hostile enemies.

So what I did was using the generic ga_faction_rep script in the conversations I set the $PC to be at -100 for the tag of the person you're talking to ( member of the baddies faction ). Then did the same again using one of the defender's tags instead of $PC and hey presto I have a riot now ! Just what I wanted !

#7
Kaldor Silverwand

Kaldor Silverwand
  • Members
  • 1 603 messages
riotous ;)

Regards