console movement command

This is the forum for helping you out if you're stuck or if you want to discuss the nitty gritty details of the dungeons within Mount Grimrock. Warning: forum contains spoilers!
Post Reply
mjs warlord
Posts: 4
Joined: Sun Sep 28, 2014 4:32 pm

console movement command

Post by mjs warlord »

i cant move fast enough in level 6 to get round trap doors.

can somebody give an example of what to type into the console so i can jump forward 2 spaces.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: console movement command

Post by Isaac »

What you most likely need to do is lose some weight. There is no situation in the official game that you cannot access ~if you are supposed to. If you absolutely cannot manage to do a thing... it's likely that you are not supposed to do it the way you are trying to. If any of your party members show the snail icon on their portrait, then your party (as a whole) is slowed, and that can indeed make certain puzzles impossible. If that's the case, lose the weight.

If you are just playing around and it's not a serious session, then it's possible to teleport anywhere with the party:setPosition() function... but you can break game logic that way, and I wouldn't recommend using that as a go-to tactic to bypass puzzle challenges.

party:setPosition(x, y, facing, level)
Instantly moves the party to given location in the dungeon.
mjs warlord
Posts: 4
Joined: Sun Sep 28, 2014 4:32 pm

Re: console movement command

Post by mjs warlord »

from the position i am in i want to move forwards 2 spaces but when i typed the line as shown to my first reply i get all sorts of syntax errors.

does anyone know what i am doing wrong
User avatar
Dr.Disaster
Posts: 2874
Joined: Wed Aug 15, 2012 11:48 am

Re: console movement command

Post by Dr.Disaster »

You need to enter the precise coordinates for the variables "x, y, facing, level" to make this command work. Activate the option "debuginfo" in grimrock.cfg to see your current coordinates in the left hand bottom of the screen. Then add/reduce accordingly.
mjs warlord
Posts: 4
Joined: Sun Sep 28, 2014 4:32 pm

Re: console movement command

Post by mjs warlord »

thanks dr.disaster i done it.
User avatar
Komag
Posts: 3654
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: console movement command

Post by Komag »

well, you could code it as (party.x + 2) or (party.y - 2) depending on your facing
Finished Dungeons - complete mods to play
User avatar
BarryBGB
Posts: 46
Joined: Wed May 16, 2012 10:07 pm
Location: Alexandria, VA - USA

Re: console movement command

Post by BarryBGB »

Komag wrote:well, you could code it as (party.x + 2) or (party.y - 2) depending on your facing
I have tried over and over in grimrock 2 to move my party and it always fails.
I type party:setPosition(25,7,0,16) and it always comes back with the error:
:1: bad argument #5 to 'setPosition' (number expected, got nil)

I remember I used to be able to do this in Grimrock I but not in 2.
Any sugestions?
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: console movement command

Post by minmay »

http://www.grimrock.net/modding/scripti ... GameObject
In Grimrock 2, objects have elevation, so setPosition needs five arguments.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
BarryBGB
Posts: 46
Joined: Wed May 16, 2012 10:07 pm
Location: Alexandria, VA - USA

Re: console movement command

Post by BarryBGB »

minmay wrote:http://www.grimrock.net/modding/scripti ... GameObject
In Grimrock 2, objects have elevation, so setPosition needs five arguments.
Ok, so I have set debug to true, but it doesn't show a 5th number. How can I find the elevation?
Post Reply