Scripting cheat sheet

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
JKos
Posts: 464
Joined: Wed Sep 12, 2012 10:03 pm
Location: Finland
Contact:

Re: Scripting cheat sheet

Post by JKos »

Updated new (1.3.6) features to the scripting cheat sheet:
https://sites.google.com/site/jkosgrimr ... heat-sheet
- LoG Framework 2http://sites.google.com/site/jkoslog2 Define hooks in runtime by entity.name or entity.id + multiple hooks support.
- cloneObject viewtopic.php?f=22&t=8450
User avatar
LordYig
Posts: 175
Joined: Wed Jul 04, 2012 5:45 pm

Re: Scripting cheat sheet

Post by LordYig »

JKos wrote:Updated new (1.3.6) features to the scripting cheat sheet:
https://sites.google.com/site/jkosgrimr ... heat-sheet
Thanks for updating this useful resource JKos !
It quite easy to lost track of all available functions.
Since the last patch added a quantity of feature it is even more difficult now :?
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Scripting cheat sheet

Post by Komag »

Ah good, this is very useful :)
Finished Dungeons - complete mods to play
User avatar
Mal85
Posts: 103
Joined: Fri Nov 16, 2012 10:56 am

Re: Scripting cheat sheet

Post by Mal85 »

Very useful and condensed information here, thank you!
User avatar
pferguso
Posts: 40
Joined: Tue Nov 06, 2012 6:09 pm

Re: Scripting cheat sheet

Post by pferguso »

A worthy resource. This thread should go in the most useful scripts repository! well done!
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Scripting cheat sheet

Post by Komag »

it's in the superthread, reference section :)
Finished Dungeons - complete mods to play
User avatar
Diarmuid
Posts: 807
Joined: Thu Nov 22, 2012 6:59 am
Location: Montreal, Canada
Contact:

Re: Scripting cheat sheet

Post by Diarmuid »

Thanks a lot for the update! Just a small detail, I noticed you have the "lever" section pasted twice in the table.
User avatar
Frenchie
Posts: 219
Joined: Wed Oct 16, 2013 2:50 am

Re: Scripting cheat sheet

Post by Frenchie »

Can you also make a console command cheat sheet?

party:setPosition(x,y,facing,lvl)
spawn("item-id")

I use the most, but

Door:open()
Door:destroy()
Door:setDoorState("open")

don't work

Furthermore I can't recognise a door lock or spawn a key if I don't know its proper item-id. Any way to do this in the console command line?
User avatar
Komag
Posts: 3658
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: Scripting cheat sheet

Post by Komag »

for i in entitiesAt(party.level,party.x,party.y) do if i.name == "dungeon_portcullis" then i:open() end end

or something like that, it's been a while, so I'm sure there are two or three mistakes in there :)
Finished Dungeons - complete mods to play
Post Reply