How to update placement of a spawned item?

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Ixnatifual

How to update placement of a spawned item?

Post by Ixnatifual »

Say you have spawned an item somewhere but want to change its position through scripting rather than with a teleporter. Ie. update x, y, facing and level. How would you do that?
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: How to update placement of a spawned item?

Post by Xanathar »

Shameless plug:
if you get grimq, there are are loadItem, saveItem and copyitem methods you can use to clone the item at another location and then destroy the original.
I'm in a very busy day (business meeting of many hours, leave the meeting early to go to the xmas show of my little daughter, go home and buy cake to celebrate her birthday with all the relatives :D) so I'm not able to give you a complete solution, sorry.

Also: those methods don't work for scrolls with pictures (the only case where they don't work afaik). This will be fixed thanks to Grimrock beta new features.
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: How to update placement of a spawned item?

Post by Komag »

I don't know how to do it other than deleting that item and creating a new one where you want it. 1.3.6 allows you to detect any scroll image for that issue as well.
Finished Dungeons - complete mods to play
Ixnatifual

Re: How to update placement of a spawned item?

Post by Ixnatifual »

I reworked my script so the item isn't spawned until it knows where to place it.
Post Reply