16 lines
390 B
Plaintext
16 lines
390 B
Plaintext
|
// Actions taken script that sets the Level Setter's target to use a caster's
|
||
|
// level.
|
||
|
|
||
|
#include "x2_inc_craft"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
// Get the item to be modified.
|
||
|
object oTarget = GetLocalObject(GetPCSpeaker(), "TK_CRAFT_MAGIC_Leveler_Target");
|
||
|
// Clear the target level.
|
||
|
SetLocalInt(oTarget, TK_CRAFTMAGIC_LEVEL, 0);
|
||
|
// Reset the item's name.
|
||
|
SetName(oTarget, "");
|
||
|
}
|
||
|
|