Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Phemar on Sun 07/03/2004 13:43:15

Title: Scripting
Post by: Phemar on Sun 07/03/2004 13:43:15
Hey, really sorry to bother you guys again, but this script won't work and I can't see anything wrong with it:

// room script file

#sectionstart hotspot2_a  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot2_a() {
 // script for hotspot2: Any click on hotspot
 RestoreGameDialog ();
 }
 

#sectionend hotspot2_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot3_a  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot3_a() {
 // script for hotspot3: Any click on hotspot
 QuitGame (1);
 }
 

#sectionend hotspot3_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart hotspot1_a  // DO NOT EDIT OR REMOVE THIS LINE
function hotspot1_a() {
 // script for hotspot1: Any click on hotspot
 NewRoomEx (3, 228, 157);
 }
 

#sectionend hotspot1_a  // DO NOT EDIT OR REMOVE THIS LINE

I've tried everything!
Title: Re:Scripting
Post by: Ishmael on Sun 07/03/2004 13:52:28
What do you mean it doesn't work? Have you created the scripts through the interaction editor? Does it give you errors?
Title: Re:Scripting
Post by: CB.. on Sun 07/03/2004 14:09:59
try clicking on the hot spots with the hand icon /the walk icon doesn't use anyclick ? (which confused me for a while )
Title: Re:Scripting
Post by: Pumaman on Sun 07/03/2004 18:59:13
Yeah, you'll have to be more specific about what does and doesn't work.
Title: Re:Scripting
Post by: Phemar on Mon 08/03/2004 03:47:02

Oooh, wait, it's working now. You can't use the walk cursor to click on these things