moogatron Posted October 24, 2010 Share Posted October 24, 2010 Hi Was wondering if anyone has any idea how I could go about amending one of the pose mods (eg. CT Add Pose) so that a pose that I have applied to an NPC is permanent? I have tried commenting out some parts in a couple of the scripts (shown below) in an attempt to retain the quest variables that the animation conditions are dependent on, but it don't know if that is helping or not! Any ideas? ScriptName a000CTPickIdleScript Begin ScriptEffectStart if a000CTAddPoseQuest.target == GetSelf pickIdle ; Message "pickidle: target=%g, major=%g, minor=%g", a000CTAddPoseQuest.target, a000CTAddPoseQuest.major, a000CTAddPoseQuest.minor else MessageBox "CTKeepPoseScript start: Illegal State Error." endif End ;Begin ScriptEffectUpdate ; Message "finish: target=%g, major=%g, minor=%g", a000CTAddPoseQuest.target, a000CTAddPoseQuest.major, a000CTAddPoseQuest.minor ; set a000CTAddPoseQuest.target to 0 ; set a000CTAddPoseQuest.major to -1 ; set a000CTAddPoseQuest.minor to -1 ; RemoveSpell a000CTPickIdle ;End ScriptName a000CTAddPoseQuestScript float fQuestDelayTime short onece short menu ref target short major short minor Begin GameMode if onece== 0 set onece to 1 Player.addSpell a000CTAddPose Player.addItem a000CTAddPoseCrystal, 1 set fQuestDelayTime to 0.2 endif ; if target == 0 ; set menu to 0 ; set major to -1 ; set minor to -1 ; StopQuest a000CTAddPoseQuest ; return ; endif if menu == 0 if MenuMode == 1 return endIf set menu to 1 if major == -1 ;; MessageBox "===[ M A I N M E N U ]===", "[ Exit Menu ]", "[ Reset Current Pose ]", "< Major 0 >", "< Major 1 >", "< Major 2 >", "< Major 3 >", "< Major 4 >", "< Major 5 >", "< Major 6 >", "< Major 7 >" MessageBox "== Main Menu ==", "[ Exit Menu ]", "[ Reset Current Pose ]", "< Standing >", "< Attack >", "< Fallen >", "< Misc >" elseif major == 0 ;; MessageBox "==[ Major 0 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" MessageBox "==[ Standing ]==", "[ Back to Main ]", "< Stand 01 >", "< Stand 02 >", "< Stand 03 >", "< Stand 04 >", "< Stand 05 >", "< Stand 06 >", "< Stand 07 >", "< Stand 08 >" elseif major == 1 ;; MessageBox "==[ Major 1 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" MessageBox "==[ Attack ]==", "[ Back to Main ]", "< Attack 01 >", "< Attack 02 >", "< Attack 03 >" elseif major == 2 ;; MessageBox "==[ Major 2 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" MessageBox "==[ Fallen ]==", "[ Back to Main ]", "< Fallen 01 >", "< Fallen 02 >", "< Fallen 03 >", "< Fallen 04 >" elseif major == 3 ;; MessageBox "==[ Major 3 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" MessageBox "==[ Fallen ]==", "[ Back to Main ]", "< Misc 01 >", "< Misc 02 >", "< Misc 03 >", "< Misc 04 >" elseif major == 4 MessageBox "==[ Major 4 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" elseif major == 5 MessageBox "==[ Major 5 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" elseif major == 6 MessageBox "==[ Major 6 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" elseif major == 7 MessageBox "==[ Major 7 ]==", "[ Back to Main ]", "< Minor 0 ?", "< Minor 1 >", "< Minor 2 >", "< Minor 3 >", "< Minor 4 >", "< Minor 5 >", "< Minor 6 >", "< Minor 7 >", "< Minor 8 >" else MessageBox "Illegal State Error: Menu == %g, Major == %g, Minor == %g", menu, major, minor set target to 0 endif elseif menu == 1 if major == -1 short button set button to GetButtonPressed if button == -1 return elseif button == 0 ;;; Cancel set target to 0 elseif button == 1 ;;; Clear pose set major to 999 set minor to 999 target.AddSpell a000CTPickIdle set menu to 999 ;; dummy else set major to ( button - 2) set menu to 0 endif else if major >= 0 && major <= 7 short button set button to GetButtonPressed if button == -1 return elseif button == 0 ;;; Back to Main set major to -1 set menu to 0 else set minor to (button - 1) target.AddSpell a000CTPickIdle set menu to 999 ;; dummy endif else MessageBox "Illegal State Error: Menu == %g, Major == %g, Minor == %g", menu, major, minor set target to 0 endif endif End Link to comment Share on other sites More sharing options...
Recommended Posts