Inigo Posted November 14, 2003 Share Posted November 14, 2003 Hey, I am trying to figure out how to make an item that will respawn throwing knives, much like the bracer that Jarlaxel uses in Forgotten Realms. I have no idea of how to go about this. Could some one please email me and explain or give a few pointers? My email is [email protected]. Please write something about it in the subject line or it will be thrown out as junk mail. Thanx! Link to comment Share on other sites More sharing options...
Marxist ßastard Posted November 14, 2003 Share Posted November 14, 2003 Just make a simple startscript... For the meat of it, just use If ( Player->GetItemCount "Glass Throwing Knife" <= 5 ) Player->AddItem "Glass Throwing Knife" 5 Else ReturnEndIf Link to comment Share on other sites More sharing options...
cmac Posted November 15, 2003 Share Posted November 15, 2003 The script for Xena's boomerang thingy used a similar script to that one provided by Marxist, but, since there was only one weapon, it went like this: If ( Player->GetItemCount "X" <=1 )Player->AddItem "X" 1ElseReturnEndIf You might also try an Equip command to make it automatically equip itself once the first one is gone, so the PC does not have to sort throough his inventory to get to it. Link to comment Share on other sites More sharing options...
Peregrine Posted November 15, 2003 Share Posted November 15, 2003 Minor question... will doing this give the "item x has been added to your inventory" message? Link to comment Share on other sites More sharing options...
Marxist ßastard Posted November 15, 2003 Share Posted November 15, 2003 No, that message can ony be displayed using MessageBox. It is not actually part of the AddItem and RemoveItem commands. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.