Simple script to create auras

Post » Mon Jun 20, 2011 12:45 am

Hi! I want to create a very simple script so my char gets the blue-green aura the Dread Zombies have every time he unsheathes his weapon, and remove it when he sheates it again. So far I have:

ScriptName WarriorAuraScriptbegin (?)	PlayMagicShaderVisuals creatureEffectZombieDreadendbegin (?)	StopMagicShaderVisuals creatureEffectZombieDreadend


...but I don't know the conditions I should put. Any ideas? (OBSE functions are also welcome).
User avatar
Danii Brown
 
Posts: 3337
Joined: Tue Aug 22, 2006 7:13 am

Post » Mon Jun 20, 2011 1:30 am

Easy one my fella :)

You can either use a quest or an ability, to check in real time if the player has his weapon drawn or not.

e.g:

scn shaderScript	float fQuestDelayTime	short runONce	short sheath		Begin GameMode			if ( runOnce == 0 )			set fQuestDelayTime to 1			set runOnce to 1		elseif ( player.isWeaponOut )			PlayMagicShaderVisuals creatureEffectZombieDread			set sheath to 1			elseif ( sheath )			StopMagicShaderVisuals creatureEffectZombieDread			set sheath to 0		endif			End

User avatar
Elisabete Gaspar
 
Posts: 3558
Joined: Thu Aug 31, 2006 1:15 pm


Return to IV - Oblivion

cron