This game is currently in development. There is no download or playable content. All information is based Developer Journals, the Kickstarter, and community discussions with developers.

Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

OPC Scripts

From Chronicles of Elyria Wiki
Jump to: navigation, search

This page can be used for sharing your OPC scripts once we start the game.

Summary of how it'll work[edit | edit source]

  1. Write code in C#/JScript using the hooks provided.
  2. Submit the script either via in-game or via the website. The script is parsed, compiled, checked for errors, etc... then you can, while in-game select the whole script or parts of it as your new OPC logic.

From a technical perspective, the C#/JScript code is compiled in to a .NET assembly on the server and is then loaded into a protected AppDomain where it's ran in isolation and monitored for performance issues. Then, your OPC DLL is sent messages to which it can respond to using methods overridden from a base class.

You can assign different event types to different classes/objects. So it's possible to mix/match classes to get different behaviors.

References[edit | edit source]