Minor irratating NPC problem(as solved as it's gonna get)

Started by EdLoen, Tue 12/09/2006 03:54:44

Previous topic - Next topic

EdLoen

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.

Candall

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.

EdLoen

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

Candall

Try cAlvin instead of cALVIN

Also note that the Script O-Name will need to be set.

EdLoen

I already tried both, and it's the same message.

How do I set the o-name?

Gilbert

In your character's setup screen, type something in the "Script name" box, and his o-name will appear in the right.

EdLoen

there's nothing for o-name. I'm running ver 2.60

Gilbert

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)

EdLoen

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.

Gilbert

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 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 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.

EdLoen

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.

SMF spam blocked by CleanTalk