Knuckle Cracker

Creeper World 3 => The Coder's Corner => Topic started by: Tyler21 on April 09, 2015, 08:11:58 AM

Title: Getting external variables
Post by: Tyler21 on April 09, 2015, 08:11:58 AM
I was wondering whether it is possible to import external variables (for instance from an online spreadsheet) into the game via some script.
I am asking this because I was thinking about a very primitive multiplayer mod (where players can assist each other) and this would be necessity.
Title: Re: Getting external variables
Post by: warren on April 09, 2015, 09:48:18 AM
Absolutely not. There is no way to communicate with the outside world from CRPL scripts.
Title: Re: Getting external variables
Post by: Telanir on April 09, 2015, 10:07:34 AM
Yeah, have to agree with Warren. We want to keep things in-project and super limited otherwise you get all sorts of security issues. Maps don't go through a review process so we don't know what people might be dishonest and do something shady.
This was never supported, I don't suppose it will be later either.
Title: Re: Getting external variables
Post by: Tyler21 on April 09, 2015, 10:21:58 AM
Thanks for the quick replies, I'll make another map then :)
Title: Re: Getting external variables
Post by: planetfall on April 09, 2015, 04:50:13 PM
Actually, you can detect whether a specific shield key has been collected, which allows different maps to communicate with each other in a rudimentary way. However there is no way to rescind a shield key once collected without the player manually modifying artifactstats.dat