17 lines
477 B
Plaintext
17 lines
477 B
Plaintext
|
// Actions taken script that sets the Level Setter's target to not use
|
||
|
// caster levels above 8.
|
||
|
|
||
|
#include "x2_inc_craft"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
// Get the item to be modified.
|
||
|
object oTarget = GetLocalObject(GetPCSpeaker(), "TK_CRAFT_MAGIC_Leveler_Target");
|
||
|
// Set the target level.
|
||
|
SetLocalInt(oTarget, TK_CRAFTMAGIC_LEVEL, 8);
|
||
|
// Reset the item's name.
|
||
|
SetName(oTarget, "");
|
||
|
// Set the item's new name.
|
||
|
SetName(oTarget, GetName(oTarget) + " (8)");
|
||
|
}
|