-
Posts
297 -
Joined
-
Last visited
Single Status Update
See all updates by CaptainManiac
-
script 1 enter
{
SetFont("dbigfont");
delay(1);
HudMessage(s:"Level: ",d:CheckInventory("LevelToken");HUDMSG_PLAIN|HUDMSG_FADEINOUT,0,CR_RED,364,282,0);
HudMessage(s:"Current EXP: ",d:CheckInventory("Experience");HUDMSG_PLAIN|HUDMSG_FADEINOUT,0,CR_RED,364,1972,0);
delay(1);
restart;
}script 2 enter
{
If(CheckInventory("Experience") >= EXP_LIMIT)
{
GiveInventory("LevelToken",1);
GiveInventory("Experience",EXP_LIMIT - CheckInventory("Experience"));
}
}ok,this script is a problem.It checks for Experience and Leveltoken items in the inventory(the amount of items show the player's level and exp),but does nto refresh.
actor Experience: CustomInventory
{
-Inventory.Invbar
Inventory.MaxAmount 999999999999999999999999999999999999
}
actor LevelToken:CustomInventory
{
-Inventory.Invbar
Inventory.MaxAmount 100
}and this is the decorate code for the corresponding items.What is the matter?