Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: DragzGames on Thu 26/02/2009 00:28:50

Title: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 00:28:50
i am new to the software and i have made my first room etc but i have gotten to the hotspots section and i have been through the manual countless times and i am still unsure why the dialogue isnt coming up when i try the game after putting the coding in and placing what to say into it.

i need help on this matter and would appreciate it if any1 could help  :)

thanks :)

DragzGames
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Nickydude on Thu 26/02/2009 00:35:51
Take a look here http://www.adventuregamestudio.co.uk/yabb/index.php?topic=36476.0 ;)
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Khris on Thu 26/02/2009 00:48:46
The function has to be properly linked.
In the hotspot's event pane (click the bolt icon), add the function by selecting e.g. "look at hotspot" then clicking the ellipses button.
The function is added to the room script, now put in what you want to happen.
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 17:20:02
what is the elipses button ? i know this sounds very pethetic but i dont know where it is cuz i looked for a button called elipses and couldnt find it sorry
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Gilbert on Thu 26/02/2009 17:28:05
He meant the '...' button. I've heard people called the three dots ellipses. I don't know why though.
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 17:34:32
ive tried this and yet it doesnt show the dialogue box and the comment for it do u know why it doesnt do that?

if need be ill place the script i have in a reply for u to take a look at :)

thanks for this by the way  ;D
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 18:30:50
// room script file

function  hWindow1_look()
{
Display("you can see the castle.");
}

this is the coding i have for the looking at hotspot is this right? if not i might have to suggest the manual being looked at as this is what it told me to put and it hasnt worked :S
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Snarky on Thu 26/02/2009 18:43:37
Quote from: Gilbet V7000a on Thu 26/02/2009 17:28:05
He meant the '...' button. I've heard people called the three dots ellipses. I don't know why though.
"Ellipsis (http://en.wikipedia.org/wiki/Ellipsis)" ("ellipses" is the plural), from the Greek word meaning "omission". The name comes from its original use as a symbol to indicate that something has been left out from a quotation.
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 19:27:10
so could any1 help me out with this coding?
is it the right code for what i wana do?
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Khris on Thu 26/02/2009 20:13:34
Everything except the Display line should have been created by AGS; if you typed all that by yourself, you didn't follow the manual or my post.
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 20:48:37
all i put was the what to say line but it doesnt show up in the game. why is that? where would i see it if it was? have i done something wrong in the game for it to do that?

if u could answer these questions anybody it would be very greatful :)

thanks

DragzGames
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: Khris on Thu 26/02/2009 22:00:30
There's a huge list of video tutorials by Densming here: http://www.youtube.com/densming
Although they sometimes aren't 100% correct, they should be a great help for a beginner.
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Thu 26/02/2009 23:23:25
thanks that helped alot but now it says no such function exists on the hwindow_look part
this is my code:

// room script file

function hwindow_look()
{
  cIvaen.Walk(156, 122, eBlock, eWalkableAreas);
  cIvaen.Say("I can see the castle from here");
}

any help guys??
Title: Re: dialogue box for hotspots doesnt work any help?
Post by: DragzGames on Fri 27/02/2009 16:31:47
ive done it now thanks to everyone that helped :)