Jump to content

Home

Creature editor / scripts?


oldflash

Recommended Posts

They are executed at various times

 

OnHearbeat is a hearbeat script that runs every few seconds (can't remember exactly how long)

OnNotice runs when the character notices something

OnSpellAt I think that one is run when a spell or force power is cast on the char or creature

OnAttacked runs when the char or creature is attacked

OnDamaged runs when the char or creature is damaged or hurt (basically losing hp's)

OnDisturbed runs when the char or creature is disturbed the default script is currently unused

OnEndRound runs at the end of each combat round

OnEndDialogu runs after you finish with that chars or creatures dialog

OnDialogue runs when you click on the char or creature that script is to fire the dialog listed in the dialog field of the utc

OnSpawn runs when the char or creature is first spawned by the game

OnRested runs when the char or creature is doing nothing at all

OnDeath runs when the char or creature dies

OnBlocked runs when something is blocking it's path

OnUserDefine runs special user defined script not sure when it exactly runs

 

Hope that helps

Link to comment
Share on other sites

OnHearbeat is a hearbeat script that runs every few seconds (can't remember exactly how long)

 

It runs once each round (which is roughly every 6 seconds).

 

OnNotice runs when the character notices something

 

It runs whenever the the creature perceives (sees, hears, or both) another creature, or loses perception (no longer sees, hears, or both) of a creature it has previously perceived.

 

OnDisturbed runs when the char or creature is disturbed the default script is currently unused

 

This isn't used in the KotOR games as far as I know. It's a leftover field from Neverwinter Nights, where the script runs when the inventory of the creature is changed, e.g. when a Rogue-class player attempts to pickpocket the creature, or take something from a container.

 

OnDialogue runs when you click on the char or creature that script is to fire the dialog listed in the dialog field of the utc

 

This script is also fired whenever the creature hears a shout or whisper from another creature. This is used to make the AI respond to things as a group. For example when you attack a creature, it will silently shout to its nearby friends that it was attacked, and their OnDialogue script will make them react and join the fight.

 

OnRested runs when the char or creature is doing nothing at all

 

This is also a leftover from Neverwinter Nights. It is unused in the KotOR games since the functionality to rest to restore health and spells doesn't exist in these games.

 

OnUserDefine runs special user defined script not sure when it exactly runs

 

It runs when a User Defined Event of a particular kind is enabled in the OnSpawn script of the creature. Basically the purpose is to allow the creature to have additional custom functionality for (some) events without having to edit the generic AI scripts assigned to the other event script slots.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...