Page 1 of 1

(Script doubt) making a icon appears at the right of screen. Special item

Posted: Tue Aug 11, 2015 2:27 pm
by *UAC* Odine
Hi guys, im working on my frankestein wad, i want to make an actor, that when you "pick up" as a item, an image appears at the right on the screen. This is a demo image about what im looking for:

Image

I have some issues with this because i dont want to add this item on the "inventory window" and of course i want to make this item unusable with the "regular inventory system" i want to make this item "special" and somehow "unusable" at least that a certain player touch the corret button, already defined on "customize controls menu" Is this possible? sorry about my ignorance about scripting, ive never try this before. is this possible by acs script? or by adjusting decorate and so on?

Basically what I want is to pick up an object, an icon appears on the right side of the screen, and can be used or thrown only by a key defined in another script (for example: key G)

Thanks a lot guys! :razz:

RE: (Script doubt) making a icon appears at the right of screen. Special item

Posted: Tue Aug 11, 2015 2:38 pm
by Ænima

RE: (Script doubt) making a icon appears at the right of screen. Special item

Posted: Tue Aug 11, 2015 3:06 pm
by *UAC* Odine
Oh that information is very revealing thanks Ænima. I'll do the test with that information (although it seems a little confusing at first sincerely) I hope to find an answer soon. you can give some clue?. any of you have done something like this before?

RE: (Script doubt) making a icon appears at the right of screen. Special item

Posted: Tue Aug 11, 2015 3:13 pm
by FascistCat
Use DrawSwitchableImage (http://zdoom.org/wiki/SBARINFO#Status_bar_commands) to check for an item in your inventory. If you have it, it draws the image at the position you want.

If you want that item not to appear in your inventory use the -Inventory.INVBAR flag (http://zdoom.org/wiki/Actor_flags#INVBAR) in that item's DECORATE code.

RE: (Script doubt) making a icon appears at the right of screen. Special item

Posted: Wed Aug 12, 2015 9:33 pm
by *UAC* Odine
FascistCat wrote: Use DrawSwitchableImage (http://zdoom.org/wiki/SBARINFO#Status_bar_commands) to check for an item in your inventory. If you have it, it draws the image at the position you want.

If you want that item not to appear in your inventory use the -Inventory.INVBAR flag (http://zdoom.org/wiki/Actor_flags#INVBAR) in that item's DECORATE code.
Cool thanks, im going to try :wink: