Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - momruoy

Pages: [1]
1
Oh, wow. I can't believe I didn't try that.
It works perfectly, thank you!
For future reference, here are the names of the powerups:
Code: [Select]
function x1001y1000()
Objects.Player.Run = 1
Objects.Player.Climb = 1
Objects.Player.HighJump = 1
Objects.Player.DoubleJump = 1
Objects.Player.Eye = 1
Objects.Player.Detector = 1
Objects.Player.Umbrella = 1
Objects.Player.Hologram = 1
end

2
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:
  • 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?

3
Knytt Stories - Custom Content / Re: Custom Object question (KS Ex)
« on: September 12, 2014, 20:48:19 »
I poked around with the lua script a little longer and I figured it out.

Instead of creating a Collectible Object, I had to create it as a Power.

I answered my own question just by futzing around with it a little longer.

4
Edit: answer below

I am attempting to add a simple collectible to my story based on GreyFace's Collectible Artifacts, and I'm curious how to add a collectible that doesn't have the counter on it (the number of total collected objects).

I've tried making the OnlyOne parameter true, and while that does indeed cause any other objects of that type to not load in a new screen, it still has the number 1 superimposed on the power bar.


My object's load.lua script is identical to the one in the Collectibles\Artifacts folders, and the same goes for my Object.ini file. All I've changed there is the animation parameters and object name.

I know it's probably something very simple, but I can't tell the difference between the MapPower object (which doesn't have the number but is far more complex) and the collectibles (which do have the numbers but are much simpler). Please help!

Pages: [1]