BioWare Atari
Informazioni BioWare Giochi BioWare Supporto Forum Visit the BioWare Store
Neverwinter Nights Home
Neverwinter Nights Home

Using Trigger Events

Intended Audience: For Builders
By David Gaider

[Printer Friendly / Syntax Highlight]

Again, make sure that any actions you wish to be caused by the trigger are sent to the appropriate targets via AssignCommand... or else you are telling the trigger, itself, to do something, and there is very little that a trigger can do on its own.

Trigger Event Listing

Event: OnClick, trigger: if you want a trigger that will cause an effect when it is clicked upon by the player, a script must be entered in this area. Most types of area transitions use this event (although a trigger that is set up as the 'Area Transition' type can make use of the wizard to do so). who triggered it? Use GetClickingObject() to return the player object who clicked on the trigger.

Event: OnEnter, trigger: any object that crosses the 'border' of the trigger will set off this event. who triggered it? Use GetEnteringObject().

Example: the following OnEnter trigger script will jump every member of the party who is in the same area to the waypoint tagged "JUMP_HERE".

NWScript:

Event: OnExit, trigger: whenever an object crosses the boundary of the trigger to leave the trigger, who triggered it? Use GetExitingObject() to return the exiting creature.

Example: this OnExit trigger script sends a command to any exiting giant to return to a waypoint.

NWScript:

Event: OnHeartbeat, trigger: like other heartbeats, the heartbeat of a trigger activates every 6 seconds. A trigger, however, is not quite the same as another object... it is only 'active' when something is within its bounds or it has been clicked upon. You cannot place a trigger and give it a heartbeat script to constantly issue orders... if you want something to do that, use an invisible placeable object, instead.

Event: OnUserDefined, trigger: again, this event will only fire if a UserDefinedEvent has been specifically sent to the trigger via the command SignalEvent.

 

 

BioWare Store
Neverwinter Nights 2 Forums
Mostra/nascondi

English
Deutsch
Français
Español
Italiano

Mostra/nascondi

Vedi le immagini più recenti 

Vedi le immagini più recenti
Mostra/nascondi

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



L'ora attuale è: (imposta ora)
dom, 22 novembre 2009 03:50

Mostra/nascondi

Download Modules

Top NWN: HotU Modules:
1. Good vs Evil III
2. More...

Top NWN: SoU Modules:
1. Good vs Evil III
2. More...

Top CEP Modules:
1. The Lord of Terror The Diablo Campa...
2. More...

Top Modules - NWVault:
1. Hall of Fame
2. More...

Total Modules: 4423

Mostra/nascondi

5,050,323 utenti BioWare:
  50 collegati
  2 nascosti
  175 ospiti

1193 Playing Online
  100% NWN
  100% NWN: SoU
  99% NWN: HotU

447 Registered Guilds

8,768,629 messaggi nei forum

Nuove discussioni:
1. 2 newb problems: Lever puzzle, a... (NWN2: Builders - NWN2 Scripting)

2. Vorcha + Krogans o_0 (Mass Effect 2 General Discussion (No Spoilers Allowed))

3. Video games? (NWN 1: General Discussion (No Spoilers Allowed))

4. How to Change the Death Message (NWN 1: Toolset)

5. Toolset work with Vista? (NWN2: Builders - NWN2 Toolset)