Aller au contenu

Photo

Make NPC wandering around after the combat?


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

#1
AnnoyingDisplayName

AnnoyingDisplayName
  • Members
  • 53 messages
How do I make my NPCs wander even after the combat? I can make them wander around right after tthe script created them. But after they are done with the combat, they will just go back to their spawned places and not wander around. Any tips?

#2
Magic

Magic
  • Members
  • 187 messages
I wanted the same, and it took me day or so to get just what I wanted. The short version: Set RUBBER_HOME_ENABLED in the variables to 0 (or in a spawn script) to get rid of the moving to the spawn point. If you're using ambient behavior, an Ambient_Start() in response to the EVENT_TYPE_COMBAT_END event should do the trick. :)

#3
AnnoyingDisplayName

AnnoyingDisplayName
  • Members
  • 53 messages
hmm

Modifié par AnnoyingDisplayName, 30 décembre 2009 - 10:26 .


#4
AnnoyingDisplayName

AnnoyingDisplayName
  • Members
  • 53 messages
I don't know where it is, can you make it specific? By the way, Thank you.

Modifié par AnnoyingDisplayName, 30 décembre 2009 - 10:28 .


#5
AnnoyingDisplayName

AnnoyingDisplayName
  • Members
  • 53 messages
Wait, scratch that, I found RUBBER thingy. Posted Image

#6
AnnoyingDisplayName

AnnoyingDisplayName
  • Members
  • 53 messages
Ok, Right now my NPCs are not going back to home location but they are still standing still. I want them to move around like before the combat. How do I do this?

Also if I may, I want to ask another question. How do I use "GetDistanceBetween" with "if" statement.

If needed, I will post my unfinished script that I tried to write for other NPCs to follow me without adding them in to the party

#7
Magic

Magic
  • Members
  • 187 messages
I'll be away for a few weeks now, so I can't help you much with the implementation, sorry.



As said, to continue moving after combat you could intercept the EVENT_TYPE_COMBAT_END event. That's easiest I think if you're using a custom creature script. I hope you know how to figure out this one, or maybe someone else can give you pointers.



Next, if you're using BioWare's ambient behavior (you just need to set some variables, similar to rubber thingy - the wiki has a tutorial) - AmbientStart(). If not, just call your own functions from the combat end event.



Good luck!