Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Stackable Items (Money)

  1. #1

    Stackable Items (Money)

    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];

  2. #2
    Master Gunnery Sergeant
    Join Date
    May 15 2005
    Location
    Eastern Oregon
    Posts
    1,353
    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?

    Case: CoolerMaster HAF-922
    MoBo: ASUS M4A89GTD Pro/USB3
    PSU: Corsair HX 750w
    CPU: AMD FX 8320 Vishera @ 4.6 GHz
    RAM: 16GB (2x8) Corsair DDR3 1333
    GPU: Palit GTX 560Ti 2GB
    Display: 1920x1080
    OS: Win7 Pro 64bit
    Audio: On-board AC'97 w/ Sony 5.1 surround

  3. #3
    Quote Originally Posted by No Use For A Name View Post
    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.

  4. #4
    Quote Originally Posted by No Use For A Name View Post
    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.

  5. #5
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    5,719
    Quote Originally Posted by No Use For A Name View Post
    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.

  6. #6
    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
    ARMA 2 Mission packs:LITE Coop mission package + LIMA coop mission package (ACE + ACRE) + More ACE + ACRE missions. + Aliabad coop Mission Package+ Fireforce Takistan NEW
    ARMA 3 Mission packs:Fourplay Coop Mission Pack NEW
    Kill things, break stuff. Repeat as necessary.

  7. #7
    Moderator [FRL]Myke's Avatar
    Join Date
    May 27 2007
    Location
    Yay, Rank 34 of 47119 and catching up.
    Posts
    5,719
    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).

  8. #8
    Stackable objects are cool. I would like to see something like that for a "drug package" present in Lingor Units
    IceBreakr, C/O [SBP] - Slovenian Black Panthers (www.vojak.si)

    Err... Mi-48 Caiman in A3? Bitch please...!

  9. #9
    Master Sergeant Serclaes's Avatar
    Join Date
    Nov 27 2005
    Location
    this town right here
    Posts
    775
    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

  10. #10
    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? )

Page 1 of 2 12 LastLast

Similar Threads

  1. New items crate
    By Bkp in forum ARMA 2 & OA : ADDONS - Configs & Scripting
    Replies: 4
    Last Post: Jan 25 2011, 22:16
  2. Removing items
    By Andersson[SWEC] in forum ARMA 2 & OA : MISSIONS - Editing & Scripting
    Replies: 2
    Last Post: Apr 23 2010, 05:59
  3. Looking for some items.
    By Oak_Elffrost in forum ADDONS & MODS: DISCUSSION
    Replies: 6
    Last Post: Jul 23 2006, 06:52
  4. Missing items
    By Suchey in forum GENERAL
    Replies: 16
    Last Post: Aug 15 2002, 16:21
  5. Spawning New Items
    By Ice Rhino in forum OFP : MISSION EDITING & SCRIPTING
    Replies: 1
    Last Post: Nov 26 2001, 20:48

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •