User talk:Kaiden

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

Scripting Help ASAP[edit source]

Two spells are needed. One spell calls this script into action and does nothing else. The other spell is jsmeditation and Heals the player. The problem with the script is that it calls a disablePlayerControls and then enablePlayerControls right after one another, so you don't see the effect. Put the enablePlayerControls at the end:

basic code below
Begin ScriptEffectStart

	if player.getav fatigue < 100

			message "Your fatigue is less than 100"
	
	elseif isincombat > 0 

		message "You are fighting!"

        else 
			
			message "You can begin meditating."

			disableplayercontrols

			cast jsMeditation player
	
			message "Your spiritual energy is restored."
	
        endif

End 

Begin ScriptEffectFinish

	Message "Meditation is good"

	EnablePlayerControls

End
Please don't create new articles for questions. Questions belong on the Talk page of an article that the question is about, or on the Community Portal if it's about the Wiki as a whole. If the question is not about either of these things, but something specific to your mod, please ask the question on the Forums. You are more likely to get a quicker and better response there than here.
Good luck!
Dragoon Wraith TALK 21:48, 9 June 2009 (EDT)