Script isn't created (following the tutorial)

Started by catacatacaterpillargirl, Sun 16/03/2025 17:04:49

Previous topic - Next topic
Hello!
I'm sure this is a very stupid question, I'm very new and can't figure it out. Sorry for that.
I'm at the part in the tutorial where you create a hotspot and I did. Now when I click the "..." in the "Look at hotspot" event, it does take me to the script but there's no script created. I only see the pre-existing script for the glowing orb. Maybe I'm misunderstanding and it doesn't automatically write the event's script for me and I need to write it myself every time?
Thank you in advance!

Crimson Wizard

Please tell which version of AGS are you using?
Are you making a function for the new hotspot or for existing one? Was the "Look at hotspot" event empty before you clicked on "..."?

I'm on 3.6. It was for a new hotspot and the event wasn't empty.

Crimson Wizard

#3
Quote from: catacatacaterpillargirl on Sun 16/03/2025 17:16:58I'm on 3.6. It was for a new hotspot and the event wasn't empty.

If that's a new, previously unused hotspot, then all events are supposed to be empty.

On another hand, if event was not empty and had a function name already, then the editor won't create a new one when you press on "...", but will point to where that function is in script.

Since you mentioned "glowing orb", that's one of the default templates, it has Hotspot 1 already in use. You may erase or repaint it, delete associated function from the script and replace with your own.

Have you tried creating other events, or using other hotspots, does that work and create new script functions?

Crimson Wizard

I remembered now. There was a mistake in previous versions of AGS where it won't create a script function if you entered its name into the events table yourself. This mistake is fixed in version 3.6.2. But if you're using older version, then you should either:

1) Don't enter any names, and just click on "...", then editor will do everything itself, or
2) Enter your name, but then you will also have to write function in script yourself.

SMF spam blocked by CleanTalk