Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: frenchy_117 on Tue 01/07/2003 18:59:43

Title: how can i do this?
Post by: frenchy_117 on Tue 01/07/2003 18:59:43
[glow=color,glow width, #characters wide]can i make it so that if a character is in a certain veiw then sumtin will happen?[/glow]how
???
[glow=color,glow width, #characters wide] ??? ???[/glow]
Title: Re:how can i do this?
Post by: Archangel (aka SoupDragon) on Tue 01/07/2003 19:13:47
Use

if(character[CHARID].view == x) {
//do something
}

Remember that character[CHARID].view is the character's view minus 1. You'll probably want to put the code in RepeatedlyExecute.

And please don't do that flaming text thing again :P
Title: Re:how can i do this?
Post by: frenchy_117 on Tue 01/07/2003 19:17:06
why not?

well anyways thanx
Title: Re:how can i do this?
Post by: Archangel (aka SoupDragon) on Tue 01/07/2003 19:21:00
Just don't, and someday you'll realise why I asked.
Title: Re:how can i do this?
Post by: ThunderStorm on Wed 02/07/2003 14:08:54
People often think that writing in capitals or using effects such as glowing text will draw the reader's attention.
Well, it  does, but it makes the text incredibly difficult to read, which would rather make me turn away than answer a question. So the best way to get a quick and good answer is to state your question in a friendly way and providing all necessary details.
Title: Re:how can i do this?
Post by: frenchy_117 on Thu 03/07/2003 02:24:30
ok...
Title: Re:how can i do this?
Post by: TerranRich on Thu 03/07/2003 03:21:09
Also, read the forum rules. Not only does it mention colorful/special text effects, but it also says to use a descriptive title. :)