Staredit Network > Forums > SC1 UMS Theory and Ideas > Topic: Inventory system inquiry
Inventory system inquiry
Sep 14 2008, 5:25 pm
By: midget_man_66  

Sep 14 2008, 5:25 pm midget_man_66 Post #1



You have an inventory, it isn't a physical one... its not bound by units that represent items.

instead it has a certain amount of slots, and each slot is dependent on a unit death count.

every slot will be represented by the same unit that has its death counts modified... and every slot will be a different non-real player. Can you edit death counts for units above player 8?

(an example of my concept):
slot 1 of the inventory: player 9 unused building... 3 death counts of unused building for player nine. this slot is filled with a potion.
slot 2 of the inventory: player 10 unused building... 7 death counts of unused building for player ten. this slot is filled with and ether
slot 3 of the inventory: player 11 unused building... 21 death counts of unused building for player eleven. this slot is filled with a quest item

How high do non-real players go.... and what is the limit for death counts? if you set death counts to zero, then remove a death count... do you have negative death counts? if non real players can be included in map triggers, how so?

if these questions were answered, i think that starcraft rpg's and adventure maps would be greatly improved, thanks



None.

Sep 14 2008, 5:28 pm Fwop_ Post #2



You can't have death counts for above player 8. Also, if this is a multiplayer map, you'd probably want to use the death count for only the player owning the item.



None.

Sep 14 2008, 6:58 pm Biophysicist Post #3



Why do you need to use extended player DCs?



None.

Sep 15 2008, 3:15 am midget_man_66 Post #4



i really don't... i actually need help with designing a 5x5 or 4x4 inventory system where the slots are interchangeable and they are not unit-orientated. anyone got some ideas?



None.

Sep 15 2008, 3:33 am Fwop_ Post #5



You mean unit-orientated as in a unit (say like a hydralisk, or marine, or critter) represents a specific item? You could use something like a combination of burrowed units to represent a certain item. How exactly do you want the system?



None.

Oct 8 2008, 2:14 am New-Guy Post #6



Well, if you were planning on making an RPG, then I suppose it could be possible...

It would be VERY difficult and time consuming, and you would have to make sure you don't use death-counts correctly. Lot's of double and tripple checking, and well as lots of patience, and, if you work like me, a LOT of papaer.



None.

Nov 7 2008, 3:12 am MetalGear Post #7



i understand why you suggested using players 9 and onwards. however, there are much easier ways of doing this. lets suggest you have 3 slots in your inventory and each slot is capable of storing multiple charges of a particular item. you will need to use 3 death counters for this, and each time you want to add a charge to an item, you just add 1 to the value of whichever death counter (slot) it applies to.

1. rename 3 unused units to slot 1, slot 2 and slot 3.
2. build a trigger to add an item to your inventory;
player: human player
conditions: (whatever conditions apply)
actions: modify death counts for current player: add 1 to slot 1 / reset conditions / preserve trigger
3. build a trigger to use an item from your inventory;
player: human player
conditions: current player has suffered at least 1 death of slot 1 / (other conditions for activation of item)
actions: heal unit / display text You used a potion! / modify death counts for current player: subtract 1 from slot 1 / preserve trigger

its really that easy. did i answer your question?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[03:34 pm]
ManCubuS -- Used : " [img=https://i.imgur.com/gpOjTuD.jpeg] "
[03:28 pm]
ManCubuS -- Even tried with imgur, doesn't attach.
[03:14 pm]
ManCubuS -- I should try a workaround, thanks! Sadly imgur is blocked in my country for some unknown reason.
[03:05 pm]
NudeRaider -- I think SEN has trouble with https or hotlinking is forbidden. It certainly is nothing about the size, it just fails to get any size. You can get it working if you use imgur and include the actual image link for the img tag. Like this: [img=https://i.imgur.com/ddYqXZa.jpeg]
[11:15 am]
ManCubuS -- Hey fellas! Anyone knows why when I try to upload an image it says "failed to get image size"? I even tried making it so small. Imgur isn't working here and I tried postimg no luck.
[2026-7-23. : 6:40 am]
Oh_Man -- true
[2026-7-23. : 3:16 am]
RIVE -- Still annoyed there was never a trigger to stop or pause wavs.
[2026-7-23. : 1:40 am]
Oh_Man -- tthen u come to SCBW and it's like - upload WAV, play WAV.... sigh why cant it be that easy
[2026-7-23. : 1:40 am]
Oh_Man -- and no consistent easy to use way to then play the audio either
[2026-7-23. : 1:39 am]
Oh_Man -- where they use third party audioprogram called WWISE which basically makes adding audio extremely difficult
Please log in to shout.


Members Online: DarkenedFantasies