Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(2 edits)

I tried the following script but the entity is not spawning.

entity spawn key1 10 5

This is the correct syntax, right?

Note: This script is attached to a decoration.

(2 edits)

Key1 instead of key1. It's all case-sensitive.

And it's spawnat now. spawnatpos if you want to spawn at exact coordinates.

spawn is now for spawning with an offset from decoration that called the script

Could you please give me the syntax of those methods?

It's the same as regular spawn.

The only difference is how coordinates are processed

still not working. Here is my script

vn 1

give weapon 1
global.cassettes=1
text "You can now throw the cassettes"
// testing spawn keys
entity spawnat Key1 8 5

map return

It's probably a bug.

Which is why I didn't introduce a scripting system yet officially.

ok. I will wait for the fixes then.

(3 edits)

i was completely wrong in what i wrote here. i though i figured it out but i did not. spawnat works with decorations, not Key1-3 or Hp1-4

Nah, it should work with any entity.

I found the bug. It does create a key but in a different place. As I said, the codebase is very old and spaghetti like at this point, so I had an old error with Z coordinates.

(1 edit)

also, i think if your script is attached to a decoration it will only trigger if you "use" the decoration with e key. based on what you are describing, you just want your key on top of your modified wallblock? so i think put script into a script file "exactnameovlevel.script" and end the script with

map start

that should start your map with the stuff spawned where you want it spawned at. unless you wanted to spawn the key only as result of using the decoration.

but i am nobody, this is just from what i have done with the software. i am like you, reading translated v1.04 manual and trying to make it work :)

Yeah. I do have a map start script. But my requirement was to talk to the decoration and it will spawn a Key to another decoration.

Maybe we can wait till JessicoChan release the manual with scripting syntaxes. Still old manual is useful for basic stuff. 🙂