Difference between revisions of "Complete Example Scripts"
Jump to navigation
Jump to search
→Enable/Disable Lock on object based on hours of day
imported>SarthesArai (→A Trigger That Detects When The Player Enters: removing personal statement) |
imported>Langerz82 |
||
Line 767: | Line 767: | ||
Say you have a door or treasure chest you want to have a timed lock on it, here you can. You can also send a Message to the users when it Enables/Disables. Similar to above. You could use it for a template for a variety of things not just a lock Mechanism, however this is a straight-forward basic example. | Say you have a door or treasure chest you want to have a timed lock on it, here you can. You can also send a Message to the users when it Enables/Disables. Similar to above. You could use it for a template for a variety of things not just a lock Mechanism, however this is a straight-forward basic example. | ||
'''To make this work''': Download and copy the [https://gist.github.com/Langerz82/ | '''To make this work''': Download and copy the [https://gist.github.com/Langerz82/976c172ce04f074bea91 TimedObjRef2.psc] file to your Skyrim/Data folder. | ||
The following is an example of the script in action. | The following is an example of the script in action. | ||
<source lang="papyrus">ScriptName jlTimedLock2 extends | <source lang="papyrus">ScriptName jlTimedLock2 extends TimedObjRef2 | ||
String Property sEnabledMessage Auto ; Optional Message when enabled. | String Property sEnabledMessage Auto ; Optional Message when enabled. | ||
Line 805: | Line 805: | ||
For more examples like this see [http://www.creationkit.com/Using_Activated_Object_Reference Using Activated Object Reference] for advanced functionality. | For more examples like this see [http://www.creationkit.com/Using_Activated_Object_Reference Using Activated Object Reference] for advanced functionality. | ||
= Adding a spell when you shout = | = Adding a spell when you shout = |