BioWare Atari
Información sobre BioWare Juegos de BioWare Soporte Foros 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.

 

 

Mass Effect Galaxy
Neverwinter Nights 2 Forums
Mostrar/Ocultar

English
Deutsch
Français
Español
Italiano

Mostrar/Ocultar

Ver las últimas pantallas 

Ver las últimas pantallas
Mostrar/Ocultar

Multiplayer Games at Neverwinter Connections

Today
Schedule a Game...



La hora actual es: (insertar hora)
dom, 22 noviembre 2009 05:31

Mostrar/Ocultar

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

Mostrar/Ocultar

5,051,047 usuarios de BioWare:
  46 conectados
  4 ocultos
  160 invitados

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

447 Registered Guilds

8,768,698 mensajes en los foros

Temas más recientes de los foros:
1. I think we ARE goin to earth (Mass Effect 2 General Discussion (No Spoilers Allowed))

2. Merging Clothing (aka. body) par... (NWN 1: Toolset)

3. "Open Your Browser and Close You... (Mass Effect 2 General Discussion (No Spoilers Allowed))

4. A List Gleaned from Dev Statemen... (Mass Effect 2 General Discussion (No Spoilers Allowed))

5. Drowned Dead Test (NWN2: Players - Storm of Zehir (Spoilers Warning))