Silgrad Tower from the Ashes

Full Version: Free Scripts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
All scripts can be obtained from the following link

My Scripts

Well i said i was practicing scripting and that i would help anyone that needs it so here are some scripts i wrote or modifeid from the CS. All work as they should, well i tested them and the CS excepts them. I will post them up and if i get enough interest i will upload them all and post a link. Enjoy.

scn zzScript01

;it adds and item to the player with whatever number you stated once.

Short DoOnce

Begin Gamemode

If (DoOnce == 0)

player.additem [Add Item ID]

set DoOnce to 1

endif

end
___________________________________________

scn zzScript02


short talked

begin gamemode
if talked == 0 && getdistance player < 1000
startconversation (Enter You NPC Reference] [Enter You Topic]
set talked to 1
endif
end
___________________________________________

scn zzScript06

; This script adds a special visual effect to the creature when this script is attached

begin ScriptEffectStart
PlayMagicShaderVisuals [Enter The effect ID Here]
end


begin ScriptEffectFinish
StopMagicShaderVisuals [Enter The effect ID Here]
end

___________________________________________

ScriptName zzScript08

; This script will automatically close and lock a door

float doorTimer
short closeDoor

Begin GameMode
if closeDoor == 1
if doorTimer > 0
set doorTimer to doorTimer - getSecondsPassed
else
;close the door
Activate
Lock
set closeDoor to 0
endif
endif
End

Begin OnActivate
Activate
if IsActionRef Player == 0
set doorTimer to 5
set closeDoor to 1
endif
End
Nice. Smile

If you're using these scripts for ST please add your modding ID to the Scn.
I'm not at the mo' but if i do i will, i put these up for everyone else to use. If you are going to use this in ST please change the script name to something like this.

Oh is there any specific scripts u guys want, keep in mind that my skills are small and i am practicing, but i will try.

scn ST##Script01

where ## is you modding abbreviations

though the Script01 bit can be changed to whatever you want.

_____________________________________________________

Scriptname zzScript10

; This is a blindness script and when attached to an NPC it will make them blind

Begin OnLoad
SetActorValue Blindness 100
End

_________________________________________________

Scriptname zzScript09

; This script automatically closes the door this is attached too

float doorTimer
short closeDoor

Begin GameMode
if closeDoor == 1
if doorTimer > 0
set doorTimer to doorTimer - getSecondsPassed
else
;close the door
Activate
; Lock
set closeDoor to 0
endif
endif
End

Begin OnActivate
Activate
if IsActionRef Player == 0
set doorTimer to 5
set closeDoor to 1
endif
End
_____________________________________________

ScriptName zzScript07

; This sets the quest stage when a NPC has died

Begin OnDeath Player
player.setstage [Enter Quest Stage]
EndIf
End
_______________________________________________

Scriptname zzScript05


Begin OnActivate

if IsActionRef player == 1

;This locks the door and displays a message when the player tries to get through the bloodworks door and up to the arena when not allowed

if [Arena Name].ReadyMatch == 0

MessageBox "Only authorized combatants may enter the Arena."
Lock 100
endif


endif

End
Morrowind Scripts

For use only with Morrowind
_______________________________________________

Begin zzAutoShutDoor

; This script automatically closes the door this is attached too

float doorTimer
short closeDoor
if closeDoor == 1
if doorTimer > 0
set doorTimer to doorTimer - getSecondsPassed
else
;close the door
Activate
set closeDoor to 0
endif
endif
End

Begin OnActivate
Activate
if IsActionRef Player == 0
set doorTimer to 5
set closeDoor to 1
endif
End
____________________________________________________

Begin OnDeathSetQuestStage

; This sets the quest stage when a NPC has died

If (OnDeath == 1)
Player->Journal [Enter Journal Index]
EndIf
End
_____________________________________________________

Begin zzLockLevel100

; This script will automatically close and lock a door

float doorTimer
short closeDoor


if closeDoor == 1
if doorTimer > 0
set doorTimer to doorTimer - getSecondsPassed
else
;close the door
Activate
Lock 100
set closeDoor to 0
endif
endif
End

Begin OnActivate
Activate
if IsActionRef Player == 0
set doorTimer to 5
set closeDoor to 1
endif
End
______________________________________________________-

Begin zzAddItemScript

;it adds and item to the player with whatever number you stated once.

Short DoOnce

If (DoOnce == 0)

player.additem [Add Item ID Here]

set DoOnce to 1

endif

end
Here's a small challange for you. I haven't gotten it to work, but i don't know scripting very well. Can you have an NPC start power attacking a container as soon as they activate it. I've been trying to make it work so that I can have working miners, but i can't do it. If you want to try, and have time, it would be appreciated.