User Tools

Site Tools


building:creatures:events
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]
authpdo: Statement did not return 'mail' attribute [auth.php:522]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
building:creatures:events [2022/12/06 13:50]
spankitty created
building:creatures:events [2022/12/08 09:14] (current)
spankitty
Line 3: Line 3:
 Sinfar creatures use these scripts [[building:​creatures:​scripts]]. Sinfar creatures use these scripts [[building:​creatures:​scripts]].
  
-If you want your NPC to behave differently or do some specific things for a given event , you can use the AI event system to preceed the scripted event. ​+If you want your NPC to behave differently or do some specific things for a given event (ex : say Hello! at spawn), you can use the AI event system to preceed the scripted event. ​
  
-nw_c2_default1 - On Heartbeat event : EVENT_AI_HEARTBEAT (string) - Script name for pre-event use. +nw_c2_default1 - On Heartbeat event : EVENT_AI_HEARTBEAT (string) - Script name for pre-event use.\\ 
-nw_c2_default2 - On Perception event : EVENT_AI_PERCEPTION (string) - Script name for pre-event use. +\\ 
-nw_c2_default3 - On Combat Round End event : EVENT_AI_ENDCOMBATROUND (string) - Script name for pre-event use. +nw_c2_default2 - On Perception event : EVENT_AI_PERCEPTION (string) - Script name for pre-event use.\\ 
-nw_c2_default4 - On Conversation event : EVENT_AI_CONVERSATION (string) - Script name for pre-event use. +\\ 
-nw_c2_default5 - On Attacked event : EVENT_AI_ATTACKED (string) - Script name for pre-event use. +nw_c2_default3 - On Combat Round End event : EVENT_AI_ENDCOMBATROUND (string) - Script name for pre-event use.\\ 
-nw_c2_default6 - On Damaged event : EVENT_AI_DAMAGED (string) - Script name for pre-event use. +\\ 
-nw_c2_default7 - On Death event : EVENT_AI_DEATH (string) - Script name for pre-event use. +nw_c2_default4 - On Conversation event : EVENT_AI_CONVERSATION (string) - Script name for pre-event use.\\ 
-nw_c2_default8 - On Disturbed event : EVENT_AI_DISTURBED (string) - Script name for pre-event use. +\\ 
-nw_c2_default9 - On Spawned event : EVENT_AI_SPAWN (string) - Script name for pre-event use. +nw_c2_default5 - On Attacked event : EVENT_AI_ATTACKED (string) - Script name for pre-event use.\\ 
-nw_c2_defaultb - On Spell Cast At event : EVENT_AI_CASTAT (string) - Script name for pre-event use. +\\ 
-nw_c2_defaulte - On Blocked event : EVENT_AI_BLOCKED (string) - Script name for pre-event use.+nw_c2_default6 - On Damaged event : EVENT_AI_DAMAGED (string) - Script name for pre-event use.\\ 
 +\\ 
 +nw_c2_default7 - On Death event : EVENT_AI_DEATH (string) - Script name for pre-event use.\\ 
 +\\ 
 +nw_c2_default8 - On Disturbed event : EVENT_AI_DISTURBED (string) - Script name for pre-event use.\\ 
 +\\ 
 +nw_c2_default9 - On Spawned event : EVENT_AI_SPAWN (string) - Script name for pre-event use.\\ 
 +\\ 
 +nw_c2_defaultb - On Spell Cast At event : EVENT_AI_CASTAT (string) - Script name for pre-event use.\\ 
 +\\ 
 +nw_c2_defaulte - On Blocked event : EVENT_AI_BLOCKED (string) - Script name for pre-event use.\\ 
 +\\ 
 +\\ 
 +{{:​building:​creatures:​creature_event.png?​400|}}\\ 
 + 
 +You can also register these events dynamically , see : [[building:​scripts:​events:​variable_based]]\\ 
 + 
 +Ex : 
 +<​code>​RegisterVariableEvent(oNPC,​ "​EVENT_AI_SPAWN",​ "​erfprefix_spawn_script"​);</​code>​ 
 +<​code>​UnregisterVariableEvent(oNPC,​ "​EVENT_AI_SPAWN",​ "​erfprefix_spawn_script"​);</​code>​ 
 + 
 +Note : nw_c2_default9 uses the variable ENTIRE_APPEARANCE2 already.
  
authpdo: Statement did not return 'mail' attribute [auth.php:522]
building/creatures/events.1670334625.txt.gz · Last modified: 2022/12/06 13:50 by spankitty

phpBB Appliance - Powered by TurnKey Linux