LongFeiaot Posted October 26, 2016 Share Posted October 26, 2016 Is there any API for data exchange between forest and cave? I discuss it with some modder, but we don't have any idea. Link to comment https://forums.kleientertainment.com/forums/topic/71169-data-exchange-between-2-worlds/ Share on other sites More sharing options...
Maris Posted October 27, 2016 Share Posted October 27, 2016 As I know only master can send info to shards but shards can't send info to master. The other way is to send info with the character. If character goes to another shard, his instances is saved and instances of all items in inventory are saved too. Their properties are saved using OnSave function, then they are packed in a string, and on the other shard they are unpacked and restored. So you can make/tune OnSave/OnLoad functions to transfer item specific information. Also there are chat messages. If you want your code to react the user command, you can create the code that is listening all chat phrases and will do something if user says key word. Link to comment https://forums.kleientertainment.com/forums/topic/71169-data-exchange-between-2-worlds/#findComment-829825 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now