Inventory items views

Started by Susanog, Thu 20/10/2005 10:21:09

Previous topic - Next topic

Susanog

Hi there
I was wondering - how do you change the way your inventory item look like ofter you pick it up out of you inventory. Each item in my inventory is on a coloured block (block only shows up after intem in is inventory.) When i take it out of the inventory, i want it to not have the block anymore. what would the coding be if i have two different picture for one item

hope that made sense  ;D

Elliott Hird

Go into the inv item section, look for a "use sprite option" pick your sprite, Tada.

Akumayo

On a slightly related subject, don't you think it would be interesting to add something in the repeatedly_execute that would first check to see if you had an item, and if you did woud proceed to animate it by changing it's spriteslot?  I always thaink that would look cool, but haven't seen it in any games.
"Power is not a means - it is an end."

Ashen

#3
I think the original question (sorry I'm a bit late) was to change it back and forth in-game, rather than set it in the editor.

There's the InventoryItem.Graphic property. You could run a check in rep_ex for what item is the active inv, and change it's sprite accordingly, then change it back if it's not active. You may want to give each item two properties, to store the 'block' graphic slot, and the 'real' graphic slot. Cumbersome, but I can't think of another way off the top of my head.

Akumayo:
strazer's written a script module that allows you to do just that. Preliminary version is available here.
I know what you're thinking ... Don't think that.

Akumayo

Oh, thanks Ashen, I guess it's not a new idea at all  :)  I'll have to download that.
"Power is not a means - it is an end."

Susanog

Thank you Ashen, and also everyone else for trying to help ;D

SMF spam blocked by CleanTalk