Do anybody here know how to add a thing so for example: If someone says Hi! then he wont say it again if i try to talk to him.
And another thing...how do i add a thing so the text will come for example: When i start in the game he will say something.
Quote from: Legge on Mon 17/05/2004 16:37:37
Do anybody here know how to add a thing so for example: If someone says Hi! then he wont say it again if i try to talk to him.
You need to set a variable the first time, and then check if that variable is set. The manual will explain to you how to set variables far beeter than I could (press F1 when in AGS to get the manual). Try going through the tutorial, it's very good.
Quote
And another thing...how do i add a thing so the text will come for example: When i start in the game he will say something.
Use the "First time player eneters room" interaction on your starting room.
If it's in a dialog, you could try turning the 'Hi' option off (SetDialogOption(); in normal script, or option-off in dialog script. Otherwise, use a variable, like SSH said.
SSH:Where do i find first time player enters???
In the room interaction list, the little red i on the room settings page.
thanks
Next time, use a more descriptive thread title.
Quote from: terranRICH on Tue 18/05/2004 04:43:19
Next time, use a more descriptive thread title.
ok.
SSH: Could you tell me WHERE in the manual? beacuse i searched for speech variables and just variables but i didnt find anything that explained...
Oh, and another thing...how do i make the thing so i can show my score?
Quote from: Legge on Tue 18/05/2004 19:34:34Could you tell me WHERE in the manual? beacuse i searched for speech variables and just variables but i didnt find anything that explained...
Text scripting > Scripting tutorial part 1. Also be sure to check the AGS Beginners' FAQ (http://www.rain-day.com/harbinger/faq/)
Quote from: Legge on Tue 18/05/2004 21:09:12
Oh, and another thing...how do i make the thing so i can show my score?
Add a label to the GUI and change its text to
@SCORETEXT@. Btw, this is also in both AGS manual and AGS Beginners' FAQ.
Have you ever considered looking at the source code of Demo Quest? There you might well find the answers to all the questions you have asked so far!
Note that this will take you some hours, but if you haven't got enough patience for this, then you shouldn't have started using AGS at all!