T2RPG: Enhanced Inventory (First crack)

Adding more information on each item. There isn't a great way to parse out
the benefits that each item gives you, so there's some extra mental work
there. Additionally, I've supplied the skill required for the particular
item.
This commit is contained in:
Jusctsch5 2015-03-27 22:48:47 -05:00
parent 7dd35caa7c
commit 06a35b6a2c
2 changed files with 17 additions and 5 deletions

View file

@ -5419,13 +5419,25 @@ function RPGGame::InventoryListOnSelect(%game, %client, %itemid)
%info[1] = " ";
%info[2] = "Item ID: " @ %itemId;
%info[3] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix);
%info[3] = "Type: " @ $ItemType[%game.GetItem(%client, %itemId)];
%info[4] = "Base Effect: " @ $ItemBaseSpecialVar[%game.GetItem(%client, %itemId)];
if ($SkillType[%game.GetItem(%client, %itemId)])
{
%info[5] = "Skill Type: " @ $SkillDesc[$SkillType[%game.GetItem(%client, %itemId)]];
}
else
{
%info[5] = " ";
}
%info[6] = "Amount: " @ %game.getitemCount(%client, %item, %prefix, %suffix);
if(%client.data.equipped[%itemid])
%info[4] = "Equipped: Yes";
%info[7] = "Equipped: Yes";
else
%info[4] = "Equipped: No";
%info[7] = "Equipped: No";
commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4]);
commandToClient(%client, 'InventoryListOnSelect', %info[1], %info[2], %info[3], %info[4], %info[5], %info[6], %info[7]);
}
}
function RPGGame::ShapeBasecycleWeapon(%game, %this, %data)

View file

@ -32,7 +32,7 @@ if ( isDemo() )
}
else
{
$Host::GameName = "WilfCastle's Tribes 2 RPG";
$Host::GameName = "WilfCastle's T2RPG";
$Host::Info = "Reboot of T2RPG Ironsphere II Mod.";
$Host::Map = "T2RPG World Map";
$Host::MaxPlayers = 64;