So recently I've been using D00D64's "Alabaster Box" mod, and I got the idea of modifying it to do two things:
1. To give all of the Chaos Emeralds instead of one
& to balance this:
2. Increased the number of charges needed to 200
After that, I started thinking about map packs that don't have special stage tokens in them ("Angel Island Tour" comes to mind)
so I wanted to make a console command that gave you ONLY one box, and only if you:
1. didn't already have a box
or
2. didn't already have all 7 Chaos Emeralds
(I even used some of the "mainbox.lua" code as things to check for)
this was the final result:
however, my command never shows up in-game. What am I doing wrong?
1. To give all of the Chaos Emeralds instead of one
& to balance this:
2. Increased the number of charges needed to 200
After that, I started thinking about map packs that don't have special stage tokens in them ("Angel Island Tour" comes to mind)
so I wanted to make a console command that gave you ONLY one box, and only if you:
1. didn't already have a box
or
2. didn't already have all 7 Chaos Emeralds
(I even used some of the "mainbox.lua" code as things to check for)
this was the final result:
What I have so far:
//Free Box! (You only get one!)
local function giftbox(p)
if (player.alaboxheld = true)
or All7Emeralds(emeralds)
CONS_Printf(p, "\133No freebies, Loser!")
else
player.alaboxheld = true
CONS_Printf(p, "\143Good Luck!")
end
end
COM_AddCommand("freebox", giftbox)
however, my command never shows up in-game. What am I doing wrong?