SetCharacterSpeechView and SetCharacterView problems

Started by fransaskois, Tue 13/04/2004 02:38:44

Previous topic - Next topic

fransaskois

Okay, this is what I want to do.

When the player uses inventory item 5 (let's say it`s a mask) on EGO, the player char, i want EGO's view to change so that he looks like he's wearing the mask.

Here's what I did;

Interaction editor
-Use inventory on character
   + Conditional - If inventory item was used (5)
           -Run script :

---

 // script for character1: Use inventory on character
SetCharacterSpeechView (EGO, 11) ;
SetCharacterView (EGO, 10) ;

---

It seems to work well.  He walks and talks with a mask on.  But after EGO talks to someone, his NormalView reverts to sans-mask.  Thing is, his Talking View is still the one with the mask, it's only when he's not talking or if he's walking around that it goes back to the mask-less view.

Any solutions?  Take your time in answering, I have an essay to write for tomorrow. ;)


-----
UPDATE - I'm done my essay now, and still no answer!
"My computer is narcoleptic."

Joelman

let me first admit I'm no AGS genius,
but i was thinking, maybe set up a second character with the sprite for your char with a mask on, and have it switch chars when you use the mask?
Are clones people two?

strazer

SetCharacterView is intended for temporary changes, animations and such.
What you want is ChangeCharacterView.

fransaskois

wow, thanks again strazer.  You're like my AGS tech angel person.

Hm...That sounded kinda... fifi.  I take it back....sorry

thanks anyways
"My computer is narcoleptic."

SMF spam blocked by CleanTalk