Jump to content
Sign in to follow this  
roguetrooper

Stackable Items (Money)

Recommended Posts

It would be great to have a stackable kind of items, such as money or "credits". They might be placed into the inventory slots of the map, radio etc. They only require one slot and their amount is shown by an overlay number in a corner of that inventory slot. To remove a certain amount of that stack you might need to press shift plus mouse which opens a dialog to let you decide how many of them you want to take away.

Additionaly there should be these commands:

_unit addstack ["credits",245];

_unit removestack ["credits",102];

Share this post


Link to post
Share on other sites

Pretty sure that's already possible, case in point Dayz with flares (and other things in core game). Besides why would you need money/credits since the military pays for all your gear?

Share this post


Link to post
Share on other sites
Pretty sure that's already possible, case in point Dayz with flares (and other things in core game). Besides why would you need money/credits since the military pays for all your gear?

I m sure there are lots of people having professional gear..and they are not military.

Share this post


Link to post
Share on other sites
Besides why would you need money/credits since the military pays for all your gear?

Would be very nice for PMC missions,for example I'm using lots of mercs in my scenarios.

Share this post


Link to post
Share on other sites
Pretty sure that's already possible, case in point Dayz with flares (and other things in core game). Besides why would you need money/credits since the military pays for all your gear?

The flares in DayZ are actually magazines with 10 flares, similar to STANAG holding XX bullets. Theoretically you could create grenade magazines with more than one grenade, taking only one slot.

But still, it could be possible to some point. You would have to create separate magazines for every possible content. Say if you want it to cap it at 10 items per stack, create magazines with 1 round, 2 rounds and so on up to ten. The per script you can check if player has one of the items already and which magazines (which would give the amount he already has), remove this mag and add a new mag which sums up to what he had and then additionaly picked.

Doable for sure.

Share this post


Link to post
Share on other sites

Not really practical if you are dealing with large sums like 102 and 245 however. Perhaps money could be implemented as an on-off item where you would either have it or not. Track the actual amount separate. eg, you have money, $102. If you take a dead persons money. You would add his count ($245) to yours (and remove the generic money object from his inventory)

-k

Share this post


Link to post
Share on other sites

Completely agree but with a little fantasy there are solutions.

You split and make "piles" for 1, 10 and 100 (and 1000) units. This would take at max 4 slots and player could have a "magazine" with 2 rounds of 100$ bills, a "magazine" with 4 rounds of 10$ bills and a "mag" with 5 rounds of 1$ coins. Sums up to 245$. ;)

Still not very pretty, personally i would solve this by simply making a single round wallet magazine to determine if the player can have money on him or not and store the amount via "setVariable" into players variablespace. This would allow to take wallets from dead players (if such situations are meant to happen).

Share this post


Link to post
Share on other sites

Stackable objects are cool. I would like to see something like that for a "drug package" present in Lingor Units ;)

lingorian_cocaine_package.jpg

Share this post


Link to post
Share on other sites

It would be awesome to access magazine round count via getter and setter. You could change the money count, make a workaround for "rifle chambering a round so you have 31 instead of 30 rounds", simulate bad rounds, refill clips from a box or other partially filled clips etc. Only with direct access to the magazine object :(

Share this post


Link to post
Share on other sites

For me, it would be enouth to have an money-"object", that eg. civilians are wearing. so you can grab the cash and put it to your account.. is there anything like that? (for warfare? ;))

Share this post


Link to post
Share on other sites

There is "EvMoney". But a character can have only one of it at a time. So there is not much you can do with it as it is without more or less extensive scripting.

With stackable "money" you could have NPCs that sell stuff or have MP scenarios where everybody starts with a certain amount of money. The person or side who has looted (i.e. all at once in their inventory currently) a certain amount will have won the match...

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×