"That doesn't work" command problem.

Started by , Sat 12/03/2005 16:59:12

Previous topic - Next topic

Ashen

#20
Yes, change it to GetHotspotName (GetHotspotAt(mouse.x,  mouse.y),  name).
Sorry, I typed it on the fly, then corrected it in AGS, but forgot to change my post.  Can't believe I didn't spot that.

Also, characters would be handled by a different bit of the unhandled_event script anyway, wouldn't they? So you could set that up however you wanted. E.g.
Code: ags

if (what == 3 ) { // Characters
  if (type == 0) { /Look at 
    DisplaySpeech (EGO, That person is called %s.", character[GetCharacterAt(mouse.x, mouse.y)].name);
  }
}


But, yeah, for individual hotspots (and objects, inventory items, etc) ending in 's', you'd probably have to script the response manually.
I know what you're thinking ... Don't think that.

magintz

#21
Cheers, I may compile this into a small little tutorial for my site.

EDIT - Also anyone else planning on using this, you have to include upper and lower-case vowels as it will be case sensitive.
When I was a little kid we had a sand box. It was a quicksand box. I was an only child... eventually.

SMF spam blocked by CleanTalk