I'm trying to drop an item into the PC's inventory, but I'm getting an "Error: Parsing Variable List" message.
I think my problem is that I'm not putting the right value in for the string for the item template, but I'm not sure what value I'm suppoesd to put in.
| Code: |
// Examining it will note that you need a shovel to remove it. However if you have the Old Shovel, it will break attempting it.
object oPC = GetFirstPC();
object oShovel = GetItemPossessedBy(oPC, "SHOVEL01");
string sBroke = "SHOVEL00";
void main()
{//if you do not have the shovel, it will note that you need a shovel.
ActionSpeakString("Test");
if (oShovel == OBJECT_INVALID)
{
ActionSpeakString("I'll need a shovel to unearth this rock.");
}
//if you do have the shovel it will break
else
{
ActionSpeakString("What the- My shovel broke!");
DestroyObject( oShovel);
object CreateItemOnObject(sBroke, oPC, 1);
}
}
|