Aller au contenu

Photo

looking for an event that tracks conversation start


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

#1
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
i'd like to check the players inventory when he right clicks on an NPC to start a conversation. The check must be done before the conversation starts because some choices in the dialog will depend on what the player has in his inventory.

#2
Challseus

Challseus
  • Members
  • 1 032 messages
EVENT_TYPE_DIALOGUE in rules_core.nss.

#3
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
thanks.

Modifié par gordonbrown82, 03 octobre 2010 - 07:14 .


#4
Proleric

Proleric
  • Members
  • 2 352 messages

gordonbrown82 wrote...
The check must be done before the conversation starts because some choices in the dialog will depend on what the player has in his inventory.

Not strictly true - you can make a conversation line conditional on a defined flag, which is set in the plot script to reflect the current state of the inventory.

Sometimes that's more convenient. For example, it may be tidier to keep all the plot logic in one place.

#5
gordonbrown82

gordonbrown82
  • Members
  • 544 messages
true dat.