I will turn my hand to almost anything and enjoy the challenge of learning something new. One way of learning scripting is by looking at existing scripts that work and tweaking them for your own purposes. So, with that in mind, I decided to release some scripts that you can make your own.
I would love to think that I am a genius scripter but that is not true - I have a lot of help from:
Scripting for Dummies by GhanBuriGhan which is available from The Lys
The Unofficial Elderscrolls Pages scripting section which you can find at The UESP
Feel free to take the scripts found here and use them in your own mods - credit is not absolutely neccessary but a thankyou in your readme will make me feel all warm and fuzzy inside!
Begin WakePc
short done
if ( done == 1 )
return
endif
if ( GetPcSleeping == 0 )
return
endif
if ( GetPcSleeping == 1 )
wakeUpPc
MessageBox, "Wake Up!!", "OK"
set done to 1
endif
end
Begin riddleMe
short riddleAsk
short button
If ( OnActivate == 1 )
Set riddleAsk to 1
endif
If ( riddleAsk == 1 )
MessageBox, "What has five fingers, one thumb and is neither fish, flesh, fowl nor bone?", "Hand", "Paw", "Glove"
Set riddleAsk to 2
Endif
If ( riddleAsk == 2)
Set button to GetButtonPressed
If ( button == -1 )
return
endif
If ( button == 0 ) ;Hand
MessageBox, "You are wrong"
Set riddleAsk to 0
return
endif
If ( button == 1 ) ;Paw
MessageBox, "You are wrong"
Set riddleAsk to 0
return
endif
If ( button == 2 ) ;Glove
MessageBox, "You are right"
;do something nice as a reward
Set riddleAsk to 0
return
endif
endif
end
Create a free website at Webs.com