Jump to content

Question about .CRE scripts


Recommended Posts

Posted

Hello. I've been poking around in NearInfinity and .CRE files can have up to 6 different scripts applied to them. I think

override script
Class script
Race script
General sript
Default script
Dialogue scrip

This is probably a big,  broad, vague question, but what gets used where and when and what takes precedence over something else?

Whats the difference between them all?

What happens if something has no scripts applied to it?

Thanks

Posted

If none: nothing.

If many: there is an order, but it is different between the games. Override is always the overriding one though.

Having several slots enables easier development, as common code can be shared by using the same script. Eg. all the "turn to enemy if attacked" stuff neutral NPCs have.

 

Some more info:

https://gibberlings3.github.io/iesdp/scripting/actions/index.htm

Too much info:

https://gibberlings3.github.io/iesdp/file_formats/ie_formats/bcs.htm

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...