How to access thrown items 'carried' by monsters?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Grimwold
Posts: 511
Joined: Thu Sep 13, 2012 11:45 pm
Location: A Dungeon somewhere in the UK

Re: How to access thrown items 'carried' by monsters?

Post by Grimwold »

This is kind of relevant to the discussion....

I've just used the addItem() code for an item-stealing monster... my script took an item from a champion's hand or armour slots, destroyed it, but not before grabbing it's name and id, and then spawned a new item to add to the monster... the following seemed to work well with a valid spawn_name and spawn_id because it spawns it "up in the air" as Petri described it.

Code: Select all

Monster:addItem(spawn(spawn_name,nil,nil,nil,nil,spawn_id))
Of course it now looks like there might be an easier way to do it othr than destroy and spawn.
viewtopic.php?f=14&t=3847
Post Reply