Difference between revisions of "User:Ichinin"

Jump to navigation Jump to search
123 bytes added ,  08:13, 17 February 2007
m
no edit summary
imported>Ichinin
m ("Bye-bye PlaceAtMe and MoveTo, Hello Questscripts")
imported>Ichinin
m
Line 1: Line 1:
2007 Feb 17: FIRST POST!!!
'''2007 Feb 17:'''
''"Bye-bye PlaceAtMe and MoveTo, Hello Questscripts"''
 
FIRST POST!!!
 


Ok, to start off this page (whatever its for) how about putting something useful here?
Ok, to start off this page (whatever its for) how about putting something useful here?


So, why not throw some light on Companion NPCs?
So, why not throw some light on Companion NPCs?
Yeah, i'll do that for starters.
Yeah, i'll do that for starters.


First, i wanted to get rid of alot of scripting. The dialogue system is perfect for reducing scripting on the NPCs.
First, i wanted to get rid of alot of scripting. The dialogue system is perfect for reducing scripting on the NPCs.
Line 10: Line 16:


First, i created two AIpackages:
First, i created two AIpackages:


'''MyFollowPlayerPackage''' (Follow Player, indefinitly)
'''MyFollowPlayerPackage''' (Follow Player, indefinitly)
'''MyStandStillPackage''' (Return to Editor Location, indefinitly)
'''MyStandStillPackage''' (Return to Editor Location, indefinitly)


I Created 2 NPCs, draged them out into some cell and gave them one refence name each, NPC1Ref and NPC2Ref. (What a creative mind i got...)
I Created 2 NPCs, draged them out into some cell and gave them one refence name each, NPC1Ref and NPC2Ref. (What a creative mind i got...)
Line 34: Line 43:


But there is more. What about '''Companion Share'''?
But there is more. What about '''Companion Share'''?


If you are somewhat into the TES-CS you immediately say "PlaceAtMe" - or "MoveTo" if you are a bit smarter :D
If you are somewhat into the TES-CS you immediately say "PlaceAtMe" - or "MoveTo" if you are a bit smarter :D


Well.. i had other plans. I did what i did earlier.
Well.. i had other plans. I did what i did earlier.


I create a dummy cell, like others had done. I made sure i had a barrel with zero items and no respawn set and put a barrel into the dummy cell.
 
I create a dummy cell, like others had done. I made sure i had a barrel with zero items and no respawn set and put an instance of this barrel into the dummy cell and gave it a ReferenceName.




Then i made 4 NPCs and gave them references (as usual) Now, the nice part is that i figured that while the Quest script was doing its dialogue thing, it could also do the companion share thing so no NPC would have to have much or ANY scripting.
Then i made 4 NPCs and gave them references (as usual) Now, the nice part is that i figured that while the Quest script was doing its dialogue thing, it could also do the companion share thing so no NPC would have to have much or ANY scripting.


I create a variable in the quest script and set the ID number of the NPC i had selected the "-Companion Share" topic for. Then the quest script would pick that up, set a reference variable to the choosen NPC and do the removeallitems... (forward and back).
I create a variable in the quest script and set the ID number of the NPC i had selected the "-Companion Share" topic for. Then the quest script would pick that up, set a reference variable to the choosen NPC and do the removeallitems... (forward and back).
Line 50: Line 63:


NPC.Disable
NPC.Disable
NPC.Enable
NPC.Enable


And they would "dress up" again too. However, the NPC would change its position so i thought it would be better to just use a dummy item.
And they would "dress up" again too. However, the NPC would change its position so i thought it would be better to just use a dummy item.
Line 56: Line 71:


Anyway, that was my first entry on this site. I hope someone will read it and find it useful.
Anyway, that was my first entry on this site. I hope someone will read it and find it useful.


--[[User:Ichinin|Ichinin]] 08:10, 17 February 2007 (EST)
--[[User:Ichinin|Ichinin]] 08:10, 17 February 2007 (EST)


Feel free to brows my [http://www.geocities.com/Ichinin/oblivion/ Oblivion] and [http://www.geocities.com/Ichinin/mwstuff.htm Morrowind] mods.
 
Feel free to browse my [http://www.geocities.com/Ichinin/oblivion/ Oblivion] and [http://www.geocities.com/Ichinin/mwstuff.htm Morrowind] mods.
Anonymous user

Navigation menu