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

Both sides previous revision Previous revision
Next revision
Previous revision
building:creatures:events [2022/12/06 14:07]
spankitty
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 (ex : apply appearance ​at spawn), 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.\\
Line 30: Line 30:
 {{:​building:​creatures:​creature_event.png?​400|}}\\ {{:​building:​creatures:​creature_event.png?​400|}}\\
  
-You can also register these events ​by script ​, see : [[building:​scripts:​events:​variable_based]]+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.1670335638.txt.gz ยท Last modified: 2022/12/06 14:07 by spankitty

phpBB Appliance - Powered by TurnKey Linux