Changing int/short to inventory item's Script name SOLVED

Started by mchammer, Fri 07/09/2007 15:19:25

Previous topic - Next topic

mchammer

Hi  :)

Im trying to change player's activeinventory and the problem is that i have the new activeinventory value in a integer variable. It seems to me that activeinventory function accepts only inventory items' script names and using script names would mean loads of extra scripting for me.
  So is there any command that changes a number value to script name, like ID property backwards?
Or is there any other way to do it?
My 40 bullets - An action/war game.

GarageGothic

Code: ags
player.ActiveInventory = inventory[activeinventory];


Where activeinventory is the name of your int/short.

mchammer

My 40 bullets - An action/war game.

SMF spam blocked by CleanTalk