Using the lua console for testing
Moderator: Moderator
Re: Using the lua console for testing
A new boss you can put in the respective file in game/modules/tome/data/general/npcs/. Add a field to it
and then in game/modules/tome/class/Game.lua look for the binding of ctrl+g and change it to:
Now pressing ctrl+g ingame will summon it beneath you.
As for vaults, it's kinda harder, you must change a zone definition to niclude the vault.
Then go to that zone, in the console you can type:
game.player:magicMap(100) to light up the level, vaults will be obvious since they do not map.
Code: Select all
define_as="TEST"
and then in game/modules/tome/class/Game.lua look for the binding of ctrl+g and change it to:
Code: Select all
[{"_g","ctrl"}] = function()
local m = game.zone:makeEntityByName(game.level, "actor", "TEST")
game.zone:addEntity(game.level, m, "actor", game.player.x, game.player.y+1)
end,
As for vaults, it's kinda harder, you must change a zone definition to niclude the vault.
Then go to that zone, in the console you can type:
game.player:magicMap(100) to light up the level, vaults will be obvious since they do not map.
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning

Re: Using the lua console for testing
Thanks; I'll play around with that. Two more questions:
- Can I teleport straight to a zone?
- Is there a god mode, or else can I use the console to level myself up?
- Can I teleport straight to a zone?
- Is there a god mode, or else can I use the console to level myself up?
Re: Using the lua console for testing
Use Game:changeLevel like this:Repton wrote: - Can I teleport straight to a zone?
Code: Select all
game:changeLevel(1, "trollshaws")
Look at the [{"_d","ctrl"}] code in Game.lua for something closely resembling god mode.- Is there a god mode, or else can I use the console to level myself up?
<DarkGod> lets say it's intended
Re: Using the lua console for testing
Also...
game.player:forceLevelup(20)
That'll make you level 20.
Change the number and you get whatever level you need. cntrl+d portals you to the east, levels you to 50, makes you invincible, and ups your damage by 10,000%. Good for some sorts of testing, not so great for others.
game.player:forceLevelup(20)
That'll make you level 20.
Change the number and you get whatever level you need. cntrl+d portals you to the east, levels you to 50, makes you invincible, and ups your damage by 10,000%. Good for some sorts of testing, not so great for others.