Removing scripting interaction functions

Started by SSH, Tue 08/06/2004 19:36:50

Previous topic - Next topic

SSH

If I remove an interaction from a room (i.e. I had a hotspot that was set to RunScript on each interaction) and then I change the interactions so they no longer run script, what is the situation with the hotspotX_a, hotspotX_b functions in the room script: can I delete them? What about the corresponding #sectionstart lines? Ditto with room_* and object_* functions?

12

®2-D2

Quotecan I delete them?
I'd say yes, I don't see why not.

QuoteDitto with room_* and object_* functions?
same here

Ishmael

I reckon they be gone when you remove the interaction... I wouldn't do anything for them, if they still remain untouched after I remove the RunScript, and wait to see of the next version does any diffrent... but then again, what harm could removing them do? They do not exist anywhere else anymore...
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Pumaman

When you change a Run Script interaction to something else, or delete the interaction, it should prompt you and ask whether to delete the script function. If you click No, then the script function effectively becomes 'orphaned' since it is now disconnected from the interaction editor, so it will never run. If this is the case, feel free to delete it - just don't delete one which is still in use.

MrColossal

Quote from: Pumaman on Wed 09/06/2004 21:46:20
just don't delete one which is still in use.

Or?

Is that like crossing the streams?
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Gilbert

Actually my suggestion is that you may not do that unless you are REALLY conscious on what you are going to do. You can always comment that part of the code (simlpest way is to enclose it with /* and */) so you can save the codes for a bit longer, in case you still want it for reference, copying from it, etc.

Scorpiorus

Quote from: MrColossal on Thu 10/06/2004 08:35:53
Quote from: Pumaman on Wed 09/06/2004 21:46:20
just don't delete one which is still in use.

Or?

Is that like crossing the streams?
I believe that if you remove the function that was attached to an interaction then on running it AGS will abort the game with an error message telling about the script was not found.

MrColossal

Oh that's not so bad... Here I am trying to imagine all life as I know it stopping instantaneously, and every molecule in my body exploding at the speed of light.
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Pumaman

Well, there is a 14% chance of that happening as well, so be careful.

SSH

What about the #sectionstart lines... will they get deleted as well if I remove the run script interaction? If not, it is safe to remove them?
12

Pumaman

They should indeed get removed along with the rest of the function.

SMF spam blocked by CleanTalk