Aller au contenu

Photo

Creature not retaliating, takes no damage but dies eventually?


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

#1
cralexns

cralexns
  • Members
  • 65 messages
Anyone have any idea why this might be happening?

I change the group of an NPC and am able to attack it like any other enemy but the NPC sustains no damage, does not retaliate but eventually dies seemingly at random. I've tried hooking up an event script to catch what kind of event the creature fires and it seems to only cast EnemyAppear, Attacked, Dying and Dead - no Damaged events what so ever.

Modifié par cralexns, 11 décembre 2009 - 08:56 .


#2
Halchek

Halchek
  • Members
  • 36 messages
Hi Cralexns,



I guess the NPC is starting as none hostile in which case according to http://social.biowar.../Creature_group you need to assign it a unique group.



I'm not sure how this is done but I gather you have to add a specil group to some GDA I'll look into it for you.



Regards



Paul

#3
Halchek

Halchek
  • Members
  • 36 messages
Cralexns,



Try adding to C:\\Program Files\\Dragon Age\\tools\\Source\\2DA\\toolset_groups.xls and creating a GDA from that.



Regards



Paul

#4
Halchek

Halchek
  • Members
  • 36 messages
Cralexns,



I got the npc quest giver to attack me by:

1. Creating a new group in toolset_groups.xls and converting to a GDA as mention above.

2. Assign the new group to NPC->Group.

3. Setting appropriate properties under NPC->Package/Scaling. I understand that min/amx levels are required and I think that rank is probably required to.

4. When the NPC becomes hostile be sure to set the NPC->Plot to false.

5. Start combat by using:-

object oNPC = GetObjectByTag("martha");

UT_CombatStart(oNPC, GetHero());



HTH



Regards



Paul

#5
Craig Graff

Craig Graff
  • Members
  • 608 messages
If you want to have the creature with the custom group always be hostile to another group (such as the party) you will want to SetGroupHostility between the two groups when entering the area.