Class DialogEvents.AppearsWhen
Triggered when a dialog "Appears When" node is executed.
public sealed class DialogEvents.AppearsWhen : IEvent
- Inheritance
-
DialogEvents.AppearsWhen
- Implements
- Inherited Members
- Extension Methods
Examples
[ScriptHandler("is_gnome")]
public bool IsGnome(CallInfo callInfo)
{
DialogEvents.AppearsWhen appearsWhen = new DialogEvents.AppearsWhen();
return appearsWhen.PlayerSpeaker?.ControlledCreature?.Race == NwRace.FromRacialType(RacialType.Gnome);
}
Remarks
This event class should be constructed manually as a part of a script handler, matching the script name specified in the dialog node.
Properties
- CurrentSpeaker
Gets the creature/object currently speaking.
- LastSpeaker
Gets the last creature/object that spoke in this conversation.
- PlayerSpeaker
Gets the player speaker in this conversation.