Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: fransaskois on Tue 13/04/2004 02:38:44

Title: SetCharacterSpeechView and SetCharacterView problems
Post by: fransaskois on Tue 13/04/2004 02:38:44
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!
Title: Re:SetCharacterSpeechView and SetCharacterView problems
Post by: Joelman on Tue 13/04/2004 22:34:52
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?
Title: Re:SetCharacterSpeechView and SetCharacterView problems
Post by: strazer on Wed 14/04/2004 08:23:28
SetCharacterView is intended for temporary changes, animations and such.
What you want is ChangeCharacterView.
Title: Re:SetCharacterSpeechView and SetCharacterView problems
Post by: fransaskois on Thu 15/04/2004 05:37:53
wow, thanks again strazer.  You're like my AGS tech angel person.

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

thanks anyways