damzel in distress

Post » Sun Aug 22, 2010 3:08 am

I have managed to make this work - when the player stays in Tamriel worldspace for about an hour my NPC is moved to the player (was in AAzzz test cell, initially disabled)- she has a find package so she runs to the player (I modify her speed so she runs fast) and cries out her help topic (with the goodbye flag set).
A few points to perfection:
1) when she appears she stays idle for a couple of secs - I tried the evp command, delayed for a frame, but does't seem to do much. Same issue with the bandits I moveto her after she speaks her topic.
2) when she exits the dialogue (goodbye flag) she gives the player a broad smile - I want her to keep her expression of fear - how ?
3) when the player runs away she never quite manages to reach him despite her huge speed. I think this happens when the player crosses a cell so she is teleported a few yards back - is it that or some behavior of the find package ?
voici the part of the quest script responsible for her being moved to the player (I used http://cs.elderscrolls.com/constwiki/index.php/Summon_Object for orienting her after being moved, so she appears behind the PC - but I use OBSE) :
if (stage == 5)	if moved		if (UDUNlirielREF.GetInSameCell player  == 0)			if ((player.GetInWorldspace Tamriel) == 0) && (playerInTamriel)				set moved to 0				set nextframe to 0				UDUNlirielREF.positioncell 0, 0, 13.8294, 0, AAzzz				UDUNlirielREF.disable				set modspeed to -modspeed				UDUNlirielREF.modactorvalue speed modspeed				set playerInTamriel to 0				printc "%aplayer interior%a" 2 3				return			endif			if (UDUNlirielREF.GetDistance Player > 2048)				printc "%aplayer got away%a" 2 3				set moved to 0				set nextframe to 0				UDUNlirielREF.positioncell 0, 0, 13.8294, 0, AAzzz				UDUNlirielREF.disable				set modspeed to -modspeed				UDUNlirielREF.modactorvalue speed modspeed						endif		endif		if nextframe == 1			UDUNlirielREF.evp;this doesn't seem to do much			set nextframe to 2		endif		if (UDUNlirielREF.GetDisabled == 0) && (nextframe == 0)			set nextframe to 1		endif	endif	if moved==0		if (player.GetInWorldspace Tamriel) && (playerInTamriel!=1)			set playerInTamriel to 1			set timeout to gamehour			printc "%aplayer out%a" 2 3		endif		if playerInTamriel==1			printc "%aplayer TTT%a" 2 3			if (gamehour - timeout) > 1				UDUNlirielREF.moveto player								set ang to player.getAngle z				UDUNlirielREF.setAngle z ang				set ang to (90 - (180 + ang))				set pos to player.getPos x + 728*(cos ang)				UDUNlirielREF.setPos x pos								set pos to player.getPos y + 728*(sin ang)				UDUNlirielREF.setPos y pos				set pos to player.getPos z + 64;--Tweak offset to put object on ground.				UDUNlirielREF.setPos z pos								UDUNlirielREF.enable							; UDUNlirielREF.evp;this doesn't seem to do much								set pcspeed to (player.getav speed)				set lirielspeed to (UDUNlirielREF.getav speed)				set modspeed to (pcspeed - lirielspeed + 100)				UDUNlirielREF.modactorvalue speed modspeed				set moved to 1			endif			if (player.GetInWorldspace Tamriel == 0)				set playerInTamriel to 0			endif				endif	endifendif

User avatar
Ernesto Salinas
 
Posts: 3399
Joined: Sat Nov 03, 2007 2:19 pm

Post » Sun Aug 22, 2010 8:16 am

This isn't going to be much help, sorry, but:

1) when she appears she stays idle for a couple of secs - I tried the evp command, delayed for a frame, but does't seem to do much. Same issue with the bandits I moveto her after she speaks her topic.


I have struggled with this for a long time and my conclusion is that there is no way to fix this problem. I have learned to live with it...

EDIT: Or I'm wrong. I hope I am. :)
User avatar
Jimmie Allen
 
Posts: 3358
Joined: Sun Oct 14, 2007 6:39 am

Post » Sun Aug 22, 2010 3:47 pm

At least I 'm not alone
Maybe someone - some brave experienced scripter, maybe :whistle:
User avatar
meghan lock
 
Posts: 3451
Joined: Thu Jan 11, 2007 10:26 pm

Post » Sun Aug 22, 2010 4:16 am

I am going to make a new thread - I think I am going to name it Persistent questions - no answers or something :whistling: - btw I have found the answer to question 2 in the OP I will post it when I find some time to install the CS again lol
User avatar
Mélida Brunet
 
Posts: 3440
Joined: Thu Mar 29, 2007 2:45 am


Return to IV - Oblivion