sapientCrow wrote: ↑Tue Jul 11, 2023 1:32 am
spawn "tome_wisdom"
This will generate a tome_wisdom object with a numerical id.
*You can check this id string by holding the tome item on the mouse cursor, and pasting the following into the console:
To spawn an object in console with a specified id string, you can use this:
Code: Select all
spawn("tome_wisdom",nil,nil,nil,nil,nil,"your_id")
*Checkable with the above getMouseItem() function. The spawn will fail if there is already an object with that name.
Alternatively you can fill out the parameters for the Spawn function instead of using 'nil'. This lets you spawn it on a specific map, tile, face direction, and elevation.
Code: Select all
spawn(object, level, x, y, facing, elevation, id)
*
https://github.com/JKos/log2doc/wiki/Gl ... ions#spawn
** BTW, objects with numerical id strings are not directly accessible—because you cannot use their id's directly. To access generated objects like these you can use findEntity() for this.