Package | Description |
---|---|
skyproc |
Modifier and Type | Method and Description |
---|---|
ScriptRef |
ScriptPackage.getScript(ScriptRef script)
Returns the ScriptRef object from the ScriptPackage that matches the
input's name.
|
ScriptRef |
ScriptPackage.getScript(java.lang.String scriptName)
Returns a ScriptRef object matching the name, if one exists, or null if
one does not.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList<ScriptRef> |
ScriptPackage.getScripts() |
Modifier and Type | Method and Description |
---|---|
void |
ScriptPackage.addScript(ScriptRef script)
Adds the script reference to the package.
|
static RACE |
NiftyFunc.genSafeScriptAttachingRace(ScriptRef script,
RACE raceToDup,
java.lang.String uniqueID)
A common way to attach scripts to NPCs that normally cannot have scripts
attached
(Any NPC that is referenced by a LVLN) is to give a racial spell to them that has a magic effect that has the desired script. This function streamlines the process and gives you a duplicate race which will attach the desired script. You can then set it to be the target NPCs race. |
static SPEL |
NiftyFunc.genScriptAttachingSpel(ScriptRef script,
java.lang.String uniqueID)
A common way to attach scripts to NPCs that normally cannot have scripts
attached
(Any NPC that is referenced by a LVLN) is to give a racial spell to them that has a magic effect that has the desired script. This function streamlines the process and gives you a SPEL/MGEF setup that will attach the desired script. Simply give this SPEL to the NPC's race. NOTE: Attaching a script attachment spell to an NPCs race will affect ALL NPCs with that same race. If you do not want this, then consider using genSafeScriptAttachingRace(). |
ScriptRef |
ScriptPackage.getScript(ScriptRef script)
Returns the ScriptRef object from the ScriptPackage that matches the
input's name.
|
boolean |
ScriptPackage.hasScript(ScriptRef script)
Returns true if package has a script matching the input's name
|
static QUST |
NiftyFunc.makeScriptQuest(ScriptRef script)
Makes a new quest that starts immediately in-game, that has this script
attached to it.
|
void |
ScriptPackage.removeScript(ScriptRef script)
Removes a ScriptRef matching the input's name, if one exists.
|