Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Wed 04/06/2003 17:53:16

Title: magic word
Post by: on Wed 04/06/2003 17:53:16
how can i make my character say a magic word to make something happen?
ie
if a door was locked you need a magic word to open it, can it be done with dialog?

woodz
Title: Re:magic word
Post by: Mr Jake on Wed 04/06/2003 17:57:29
Using Dialog_request I think...
check the manual under Dialog_request for absolut info....

but it basicly lets you run a script in a dialog, by putting run_script X
and putting the function dialog_request (int parrameter) in global script.
Im not sure about this, cause Im trying to get mine working atm
Title: Re:magic word
Post by: Scorpiorus on Wed 04/06/2003 20:03:13
When you say "how can i make my character say a magic word" do you mean the player should choose the correct phrase from the dialog options? Or doy you want to make him enter the word instead?

-Cheers
Title: Re:magic word
Post by: on Wed 04/06/2003 20:29:22
the character, speaks to another character who give him a clue, which is a word in a piicture, then the actor finds it, and uses the word to unlock an object
which would be best?
it is a magic based game so the object could be talked to, so that would make the "word" active once the picture was looked at, so would the locked object be a character? would that work? if so how do i do it, if you like i can IM that bit of the plot, its part of a MAGS game so i don't wanna say to much.its a important bit of the plot!!

woods
Title: Re:magic word
Post by: Mr Jake on Wed 04/06/2003 20:39:47
I will help, I can use it to show that I listen to people and have learnt some scripting :)
Im me what you mean and I will try to put together a basic script you can use as a template  ;D
Title: Re:magic word
Post by: Squinky on Thu 05/06/2003 03:49:24
A real easy way to do it would be to just give the character the word in his inventory, depending on what your going for. This isn't the most advanced way of going about it, but it could be kinda funny if it fit the game properly...
Title: Re:magic word
Post by: on Thu 05/06/2003 08:17:22
ty Squinky and hotshot for your help ;D

woodz
Title: Re:magic word
Post by: Timosity on Thu 05/06/2003 15:28:15
"Ken Sent Me"
Title: Re:magic word
Post by: Gilbert on Fri 06/06/2003 03:13:11
That's the crappiest modified part in LSL1VGA IMO, not to say the update was good though...