Difference between revisions of "User:AdminSR1/Scripting Protecting Plug-in Files"
Jump to navigation
Jump to search
User:AdminSR1/Scripting Protecting Plug-in Files (edit)
Revision as of 01:28, 2 October 2018
, 01:28, 2 October 2018no edit summary
imported>CraftySentinel (→Script) |
imported>CraftySentinel |
||
Line 1: | Line 1: | ||
==Script== | ==Script== | ||
This is an example script. It can be used to prevent access to a plugin file by displaying a series of messages and menus that will either let the player into the game with the plug-in or take them back to the main menu where they can uninstall the plug-in file. | This is an example script. It can be used to prevent access to a plugin file by displaying a series of messages and menus that will either let the player into the game with the plug-in or take them back to the main menu where they can uninstall the plug-in file. | ||
Line 41: | Line 26: | ||
Message Property FailMessage01 Auto Const | Message Property FailMessage01 Auto Const | ||
{Message To Show If User Has Plugin Installed} | {Message To Show If User Has Plugin Installed} | ||
Message Property WarningMessage01 Auto Const | Message Property WarningMessage01 Auto Const | ||
Line 59: | Line 41: | ||
Event OnQuestInit() | Event OnQuestInit() | ||
If (Game.IsPluginInstalled("ExamplePlugin01.esp")) | If (Game.IsPluginInstalled("ExamplePlugin01.esp")) | ||
Menu() | Menu() | ||
Else | Else | ||
FailMessage01.Show() | |||
Self.Stop() | Self.Stop() | ||
Self.Reset() | Self.Reset() | ||
Line 106: | Line 81: | ||
</source> | </source> | ||