Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: EdLoen on Tue 12/09/2006 03:54:44

Title: Minor irratating NPC problem(as solved as it's gonna get)
Post by: EdLoen on Tue 12/09/2006 03:54:44
a stationary NPC that has animation won't animate.  I've finished his frames, and put them to use, but It's ticking me off that the "0 for none" on the walking view doesn't work, and the idle won't kick in.  This funtionality is really tickin' me off.  There's probably a simple solution to that, but I'm sure my short-fuseness is preventing me of finding it.  I even tried adding loops until the no-particular purpose showed and put them there but all the still showed up was the blue cup.  Right now I'm too riled up to try to play around with it myself, so I'm asking for help.
Title: Re: Minor irratating NPC problem
Post by: Candall on Tue 12/09/2006 04:57:18
Just put... whatever in the normal loop, and in the game_start part of the room script, put this:

cCharactername.SetIdleView(view number, 0);

Charactername is the name of your character's O-script, "view number" is just to be replaced by the... view number... and the "0" is there to keep AGS from putting a pause in the animation between cycles.
Title: Re: Minor irratating NPC problem
Post by: EdLoen on Tue 12/09/2006 05:53:07
I keep getting a script error when I try to test the game.

Quote
There was an error compiling your script. the proble was:
In 'main script'
error (line2): Parse error: unexplain 'cALVIN'

were alvin's when charactername
Title: Re: Minor irratating NPC problem
Post by: Candall on Tue 12/09/2006 06:03:09
Try cAlvin instead of cALVIN

Also note that the Script O-Name will need to be set.
Title: Re: Minor irratating NPC problem
Post by: EdLoen on Tue 12/09/2006 06:31:54
I already tried both, and it's the same message.

How do I set the o-name?
Title: Re: Minor irratating NPC problem
Post by: Gilbert on Tue 12/09/2006 06:35:12
In your character's setup screen, type something in the "Script name" box, and his o-name will appear in the right.
Title: Re: Minor irratating NPC problem
Post by: EdLoen on Tue 12/09/2006 06:40:13
there's nothing for o-name. I'm running ver 2.60
Title: Re: Minor irratating NPC problem
Post by: Gilbert on Tue 12/09/2006 06:43:12
o-names are implemented only for V2.7+

So, either:
1. Upgrade (must backup first!), or
2. use the old functions, will be SetCharacterIdle) in your case (look up the manual for usage)
Title: Re: Minor irratating NPC problem
Post by: EdLoen on Tue 12/09/2006 06:52:10
Is there a seperate download for the manual, cause I don't seem to have it anymore, and the online version's 404'ing on every page. cause those were the first place i tried to look.
Title: Re: Minor irratating NPC problem
Post by: Gilbert on Tue 12/09/2006 10:17:21
I don't understand, why would you remove such an important thing as the manual (the ags.chm file for V2.6 line and ags-help.chm for newer versions) from the ags folder?

The online manual (http://www.adventuregamestudio.co.uk/manual/) works for me, are you behind some firewall or filters?
But anyway, since the online version is up-to-date, it wouldn't be friendly to people using old AGS versions. So your best bet is to download the desired version (http://americangirlscouts.org/agswiki/index.php/AGS_Version_history) of AGS package again

Don't get me wrong, I'm not forcing people to use newer versions of AGS, as I myself is still using V2.6sp1.
Title: Re: Minor irratating NPC problem
Post by: EdLoen on Tue 12/09/2006 16:06:46
I didn't pourposly delete it, it maybe gotten lost when my computer did a wired "let-me-delete-all-unused-files" crap it did last year. (screwed up a few other things as well).

Thanks for the point in the right direction.