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

Discuss all aspects related to modding Zandronum here.
Post Reply
*UAC* Odine
New User
Posts: 16
Joined: Fri Apr 10, 2015 2:53 am
Location: Spain / Europe

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

#1

Post by *UAC* Odine » Tue Aug 11, 2015 2:27 pm

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:
Last edited by *UAC* Odine on Tue Aug 11, 2015 2:33 pm, edited 1 time in total.
Rip & Tear!

User avatar
Ænima
Addicted to Zandronum
Posts: 3583
Joined: Tue Jun 05, 2012 6:12 pm

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

#2

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

Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

*UAC* Odine
New User
Posts: 16
Joined: Fri Apr 10, 2015 2:53 am
Location: Spain / Europe

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

#3

Post by *UAC* Odine » Tue Aug 11, 2015 3:06 pm

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?
Rip & Tear!

FascistCat
 
Posts: 98
Joined: Mon Jul 20, 2015 12:51 pm

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

#4

Post by FascistCat » Tue Aug 11, 2015 3:13 pm

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.

*UAC* Odine
New User
Posts: 16
Joined: Fri Apr 10, 2015 2:53 am
Location: Spain / Europe

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

#5

Post by *UAC* Odine » Wed Aug 12, 2015 9:33 pm

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:
Rip & Tear!

Post Reply