I thought I was clever figuring out it would be quite easy to make a "smaller" (additional) version of the npc-106 SMB1 elevator. Well I guess I was wrong, or did I forget something? I was sure I just have to name the files properly. A lua version of that npc itself does not exist I mean. Also "elevator.lua" does not look like it is "hardcoded" to certain npcs ... so, why does my version does not work like the original?![Image]()
![Image]()
Edit some hours later...
It looks like it does need a proper *.lua
I actually tried to copy that elevator.lua with a new name in the test folder, renaming it (elevatorCC) and looked in a custom class with few lines and thought something like that would do the trick...That sh*t is just hard :/
I can't imagine that an insane amount of code would have to be created.
Code:
[npc]name = "Smaller Elevator"group = "Super Mario Bros."category = "Platforms"image = "npc-796.png"description = "A moving platform that moves vertically."algorithm = "elevator.lua"default-effect = 10shell-effect = 10gfx-offset-x = 0gfx-offset-y = 0gfx-height = 16gfx-width = 48grid = 32grid-offset-x = 0grid-offset-y = 0physical-height = 16physical-width = 48...


Edit some hours later...
It looks like it does need a proper *.lua
I actually tried to copy that elevator.lua with a new name in the test folder, renaming it (elevatorCC) and looked in a custom class with few lines and thought something like that would do the trick...
Code:
local npcManager = require("npcManager")local elevatorCC = require("elevatorCC")local smallElevator = {}local npcID = NPC_IDlocal deathEffect = npcIDreturn smallElevator
I can't imagine that an insane amount of code would have to be created.
Statistics: Posted by Just_Thomas — Thu May 02, 2024 4:26 pm