1
Knytt Stories - Custom Content / [ANSWERED] [KS Ex] How to trigger power collection in lua?
« on: September 25, 2014, 18:41:43 »
I'm trying to mess around with powers in my story's Script.lua using KS Ex
Is there a way to cause a power to be "activated" in the lua script?
For example, upon loading a particular screen (let's say x1001y993) I want to automagically have the Run power.
In my screen function (function x1001y993()) I've tried:
How do I cause any arbitrary power to be "activated" using a script instead of actually gathering the powerup in-game?
Is there a way to cause a power to be "activated" in the lua script?
For example, upon loading a particular screen (let's say x1001y993) I want to automagically have the Run power.
In my screen function (function x1001y993()) I've tried:
- vars.Powers["Run"] = true;
- vars.Run = true;
- Objects.Powers.Run = true;
- And many other variations
How do I cause any arbitrary power to be "activated" using a script instead of actually gathering the powerup in-game?