Jump to content

Custom Race Mannequins Help


lupicatalum

Recommended Posts

Fired my CSE to check something and forgot I HAVE a d3d9.dll in my Oblivion folder.

 

http://www.nastyhobbit.org/data/media/13/picard-facepalm.jpg

As soon as I finish defibrillating my modding computer, I'll reply here.

 

Cheers!

Link to comment
Share on other sites

  • Replies 367
  • Created
  • Last Reply

Top Posters In This Topic

Thanks, Lupis, and your fiancée too.

 

Well, sorry, but you left me behind a long time ago. I don't understand any of the error messages you got, other than it looks like the script that is causing you these troubles has not been assigned to a reference (an object), and we know that's not the case.

 

I'm out of ideas here. I had the idea of installing the Mannequins mod you use as a master and then replicating your same steps, but even if I encounter the same errors as you, we will not be closer to the fix than before.

 

I feel like Lieutenant Worf trying to fix the warp drive core before it fuses. With a pair of pliers. Sorry.

 

Cheers!

Link to comment
Share on other sites

It's OBSE what adds the scripting capabilities. CSE allows you to use these capabilities. But it also adds other features, like the ability to use esps as masters, improved performance... you should read the pdf to see all of them.

 

Without the CSE, you can't use OBSE commands in your scripts unless you put them in external ini files, I think.

 

Cheers!

Link to comment
Share on other sites

The vanilla CS will recognize/use OBSE functions if you start it following the instructions in obse_readme.txt (start it with the CS shortcut pointing to ...\obse_loader.exe" -editor). I don't think the regular CS will be able to edit your mod with it's ESP masters though (so we're back to that WB ESMify/ESPify thing).

 

I believe that CSE extends the abilities of the Script Editor as well as making it OBSE aware/compatible.

Link to comment
Share on other sites

Whoa, yes, the obse_loader.exe -editor command so the vanilla CS can recognize OBSE script commands. But as you point, Striker, this will disable the esp as a master function.

 

Sigh. I share a trait with Chancellor Meresin: I do HATE not knowing things.

 

Cheers!

Link to comment
Share on other sites

then ill use ini's if I release a mod with scripting. I can use the regular cs for scripting. problem solved. heres the mannequin script.

 

ScriptName ReznodMannequinMarbleFScript

Ref MySelf
Short MessageStatus
Short MessageAnswer
Short CurrentState
Short MyAlert

Short Edit
Short Pose
Short Sneak
Short Alert
Short UpdatePose
Float Timer
Short DummyCount

Float MyX
Float MyY
Float MyZ
Float MyRot

Begin OnLoad

if ( MyX == 0 )
if ( MyY == 0 )
if ( MyZ == 0 )
if ( MyRot == 0 )
set MyX to Player.GetPos X
set MyY to Player.GetPos Y
set MyZ to Player.GetPos Z
set MyRot to Player.GetAngle Z
set Pose to 0
set Sneak to 0
set Alert to 0
endif
endif
endif
endif

SetForceSneak Sneak

if ( Pose == 0 )
PlayGroup Idle 1
elseif ( Pose == 1 )
PlayGroup BlockIdle 1
elseif ( Pose == 2 )
PlayGroup CastSelf 1 ; left
elseif ( Pose == 3 )
PlayGroup CastSelfAlt 1 ; right
elseif ( Pose == 4 )
PlayGroup CastTarget 1 ; left
elseif ( Pose == 5 )
PlayGroup CastTargetAlt 1 ; right
elseif ( Pose == 6 )
PlayGroup CastTouch 1 ; two handed
elseif ( Pose == 7 )
PlayGroup CastTouchAlt 1 ; right
endif

set Timer to 0

SetGhost 1

End

Begin OnActivate

set MessageStatus to 1
set MyX to GetPos X
set MyY to GetPos Y
set MyZ to GetPos Z
set MyRot to GetAngle Z

End

Begin GameMode

if ( Edit == 0 )
if ( UpdatePose == 1 )
set MySelf to GetSelf
if ( CurrentState == 0 )
set CurrentState to 1
endif
elseif ( UpdatePose == 2 )
set UpdatePose to 0
set ReznodMannequinPoseActiveRef.MyRef to MySelf
ReznodMannequinPoseActiveRef.MoveTo MySelf
MoveTo ReznodMannequinContainerObject
endif
endif

if ( Timer < 0.8 )
set Timer to ( Timer + GetSecondsPassed )
else
SetUnconscious 1
SkipAnim
endif

if ( GetItemCount ReznodMannequinDummyWeapon > 1 )
set DummyCount to ( GetItemCount ReznodMannequinDummyWeapon - 1 )
RemoveItem ReznodMannequinDummyWeapon DummyCount
elseif ( GetItemCount ReznodMannequinDummyWeapon == 0 )
AddItem ReznodMannequinDummyWeapon 1
endif

if ( CurrentState > 0 )
if ( CurrentState == 1 )
RemoveAllItems ReznodMannequinContainerObject
set CurrentState to 2
Return
elseif ( CurrentState == 2 )
SetUnconscious 0
ReznodMannequinContainerObject.RemoveAllItems MySelf
SetAV Luck 0
set CurrentState to 3
Return
elseif ( CurrentState == 3 )
EvaluatePackage ReznodMannequinActorAIWearable
set CurrentState to 4
Return
elseif ( CurrentState == 4 )
SetAV Luck 1
set CurrentState to 5
Return
elseif ( CurrentState == 5 )
EvaluatePackage ReznodMannequinActorAIArmor
SetAlert Alert
set CurrentState to 6
Return
elseif ( CurrentState < 10 )
set CurrentState to ( CurrentState + 1 )
Return
else
SetUnconscious 1
set UpdatePose to 2
set CurrentState to 0
endif
else
SetPos X MyX
SetPos Y MyY
SetPos Z MyZ
SetAngle Z MyRot
endif

if ( MessageStatus == 0 )
Return
elseif ( MessageStatus == 1 )
MessageBox "What would you like to do?" "Return" "Modify Inventory" "Pick Up" "Pose"
set Edit to 1
set MessageStatus to 2
elseif ( MessageStatus == 2 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set Edit to 0
set MessageStatus to 0
Return
elseif ( MessageAnswer == 1 )
RemoveItem ReznodMannequinDummyWeapon 1
RemoveAllItems ReznodMannequinContainerObject
ReznodMannequinContainerObject.Activate Player 1
set UpdatePose to 1
set MessageStatus to 1
Return
elseif ( MessageAnswer == 2 )
RemoveItem ReznodMannequinDummyWeapon 1
RemoveAllItems Player
Player.AddItem ReznodMannequinMarbleFObject 1
set MyX to 0
set MyY to 0
set MyZ to 0
set MyRot to 0
MoveTo ReznodMannequinContainerObject
Return
elseif ( MessageAnswer == 3 )
set MessageStatus to 3
Return
endif
elseif ( MessageStatus == 3 )
if ( Sneak == 1 )
if ( Alert == 1 )
if ( Pose == 1 )
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "* Toggle Weapon Drawn" "* Toggle Sheild Raised" "Casting Options"
elseif ( Pose == 0 )
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "* Toggle Weapon Drawn" "Toggle Sheild Raised" "Casting Options"
else
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "* Toggle Weapon Drawn" "Toggle Sheild Raised" "* Casting Options"
endif
else
if ( Pose == 1 )
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "Toggle Weapon Drawn" "* Toggle Sheild Raised" "Casting Options"
elseif ( Pose == 0 )
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "Toggle Weapon Drawn" "Toggle Sheild Raised" "Casting Options"
else
MessageBox "What pose would you like?" "Return" "Face" "* Toggle Sneak" "Toggle Weapon Drawn" "Toggle Sheild Raised" "* Casting Options"
endif
endif
else
if ( Alert == 1 )
if ( Pose == 1 )
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "* Toggle Weapon Drawn" "* Toggle Sheild Raised" "Casting Options"
elseif ( Pose == 0 )
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "* Toggle Weapon Drawn" "Toggle Sheild Raised" "Casting Options"
else
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "* Toggle Weapon Drawn" "Toggle Sheild Raised" "* Casting Options"
endif
else
if ( Pose == 1 )
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "Toggle Weapon Drawn" "* Toggle Sheild Raised" "Casting Options"
elseif ( Pose == 0 )
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "Toggle Weapon Drawn" "Toggle Sheild Raised" "Casting Options"
else
MessageBox "What pose would you like?" "Return" "Face" "Toggle Sneak" "Toggle Weapon Drawn" "Toggle Sheild Raised" "* Casting Options"
endif
endif
endif
set MessageStatus to 4
elseif ( MessageStatus == 4 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set MessageStatus to 1
Return
elseif ( MessageAnswer == 1 )
set MyRot to ( Player.GetAngle Z - 180 )
set UpdatePose to 1
set MessageStatus to 3
Return
elseif ( MessageAnswer == 2 )
if ( Sneak == 0 )
set Sneak to 1
else
set Sneak to 0
endif
set UpdatePose to 1
set MessageStatus to 3
Return
elseif ( MessageAnswer == 3 )
if ( Alert == 0 )
set Alert to 1
else
set Alert to 0
endif
set UpdatePose to 1
set MessageStatus to 3
Return
elseif ( MessageAnswer == 4 )
if ( Pose == 1 )
set Pose to 0
else
set Pose to 1
endif
set UpdatePose to 1
set MessageStatus to 3
Return
elseif ( MessageAnswer == 5 )
set MessageStatus to 5
Return
endif
elseif ( MessageStatus == 5 )
if ( Pose == 2 || Pose == 3 )
MessageBox "What type of casting would you like to pose?" "Return" "* Self" "Target" "Touch"
elseif ( Pose == 4 || Pose == 5 )
MessageBox "What type of casting would you like to pose?" "Return" "Self" "* Target" "Touch"
elseif ( Pose == 6 || Pose == 7 )
MessageBox "What type of casting would you like to pose?" "Return" "Self" "Target" "* Touch"
else
MessageBox "What type of casting would you like to pose?" "Return" "Self" "Target" "Touch"
endif
set MessageStatus to 6
elseif ( MessageStatus == 6 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set MessageStatus to 3
Return
elseif ( MessageAnswer == 1 )
set MessageStatus to 7
Return
elseif ( MessageAnswer == 2 )
set MessageStatus to 9
Return
elseif ( MessageAnswer == 3 )
set MessageStatus to 11
Return
endif
elseif ( MessageStatus == 7 )
if ( Pose == 2 )
MessageBox "What variation of cast on self would you like to pose?" "Return" "* Left Handed" "Right Handed"
elseif ( Pose == 3 )
MessageBox "What variation of cast on self would you like to pose?" "Return" "Left Handed" "* Right Handed"
else
MessageBox "What variation of cast on self would you like to pose?" "Return" "Left Handed" "Right Handed"
endif
set MessageStatus to 8
elseif ( MessageStatus == 8 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set MessageStatus to 5
Return
elseif ( MessageAnswer == 1 )
set Pose to 2
set UpdatePose to 1
set MessageStatus to 7
Return
elseif ( MessageAnswer == 2 )
set Pose to 3
set UpdatePose to 1
set MessageStatus to 7
Return
endif
elseif ( MessageStatus == 9 )
if ( Pose == 4 )
MessageBox "What variation of cast on target would you like to pose?" "Return" "* Left Handed" "Right Handed"
elseif ( Pose == 5 )
MessageBox "What variation of cast on target would you like to pose?" "Return" "Left Handed" "* Right Handed"
else
MessageBox "What variation of cast on target would you like to pose?" "Return" "Left Handed" "Right Handed"
endif
set MessageStatus to 10
elseif ( MessageStatus == 10 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set MessageStatus to 5
Return
elseif ( MessageAnswer == 1 )
set Pose to 4
set UpdatePose to 1
set MessageStatus to 9
Return
elseif ( MessageAnswer == 2 )
set Pose to 5
set UpdatePose to 1
set MessageStatus to 9
Return
endif
elseif ( MessageStatus == 11 )
if ( Pose == 6 )
MessageBox "What variation of cast on touch would you like to pose?" "Return" "* Two Handed" "Right Handed"
elseif ( Pose == 7 )
MessageBox "What variation of cast on touch would you like to pose?" "Return" "Two Handed" "* Right Handed"
else
MessageBox "What variation of cast on touch would you like to pose?" "Return" "Two Handed" "Right Handed"
endif
set MessageStatus to 12
elseif ( MessageStatus == 12 )
set MessageAnswer to GetButtonPressed
if ( MessageAnswer == -1 )
Return
elseif ( MessageAnswer == 0 )
set MessageStatus to 5
Return
elseif ( MessageAnswer == 1 )
set Pose to 6
set UpdatePose to 1
set MessageStatus to 11
Return
elseif ( MessageAnswer == 2 )
set Pose to 7
set UpdatePose to 1
set MessageStatus to 11
Return
endif
endif

End

Link to comment
Share on other sites

If CSE is just chocking when you try to load the original Reznod script why not copy it (using the regular CS) and paste it into Notepad, do your edit in Notepad, copy the edited version from Notepad and then paste it into a blank script in CSE. Maybe it will compile (make sure not to hit Compile All ... very bad idea).

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...