Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / Possible to create an Item screen

Author
Message
Zombies eaten people
18
Years of Service
User Offline
Joined: 17th Oct 2006
Location: valencia
Posted: 13th Feb 2009 16:54
I tried using search but could not find a thread with the answer. I wondered if it was possible to create an item screen in fps. This way you could see all the items you have with a description.

The trekkie
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 13th Feb 2009 21:11
Yeah, with plys mod...

Till Thy Migration Come...
http://pretzelgames.webs.com/pretzel%20games%20tgc%20forum.jpg
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 14th Feb 2009 02:19 Edited at: 14th Feb 2009 02:21
You can have an inventory using variables. One variable for the item, and another for how many of that item you have.

Create numbered huds for each item, and assign them a hud position from the top of the screen down. When you press the inventory display key (SCANCODEKEYPRESSED=X), if the item is in inventory (VARGREATER=0) then show that item hud with the proper number (VAREQUAL=3). Then drop down to the next position on screen and check to see if the next item is in inventory. If it is, display it. Rinse and repeat if necessary.

It could get extremely tedious though. You may want to keep the inventory down to just a few possible items. Each time an item is used, it has to be subtracted from that second variable.

That's one way.

Best.

Login to post a reply

Server time is: 2024-11-24 19:52:22
Your offset time is: 2024-11-24 19:52:22