Page MenuHomeFeedback Tracker

Outlawled
User

Projects

User does not belong to any projects.

User Details

User Since
Mar 14 2014, 12:25 AM (527 w, 5 d)

Recent Activity

May 10 2016

Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

Well, either it's not actually that simple, or they're busy doing more important things.

Or they know about that time I stole $20 from my mom's purse when I was eight, and now they're giving me the punishment I deserved but never got.

May 10 2016, 6:47 AM · Arma 3
Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

The reason I've been adding "single" to the commands is just to emphasize that the command only removes one. If you want to remove multiple, you can easily create your own function which runs the command in a loop.

Also, I'm only suggesting new functionality, I really don't care what the commands are called.

That being said, here are my suggestions for adding containers.

container <b>addSingleBackpackCargo</b> classname; Returns the added backpack's corresponding container object.
container <b>addSingleItemCargo</b> classname;
Returns objNull or, if the added item has a corresponding container object, that will be returned.

<b>getContainerCargoDetail</b> container; // returns all uniforms, vests, and backpacks and their associated container objects in format [containerObject, itemClassname]

container <b>removeSingleContainerCargo</b> containerObject; // This is wayyyyy better than my attempt to define a unique container as if it were a weapon with attachments. Haha.

May 10 2016, 6:47 AM · Arma 3
Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

Oooh, yeah. Forgot about backpacks. I'll update my original post to include backpack commands.

Or maybe instead of backpacks, containers?

So uniforms, vests, and backpacks? Could that work? I know that uniforms and vests count as items in-game, and backpacks are their own separate thing.

But it would be incredibly useful to have a command that returned all the containers inside of another container so that we could get all of the items inside of a container inside of a container.

You know?

container <b>addContainerCargo</b> classname;

<b>getContainerCargo</b> container;

<b>clearContainerCargo</b> container;

container <b>removeSingleContainerCargo</b> classname;

container <b>removeSingleContainerCargo</b> [classname, [items], [magazines], [weapons], [containers]]; ????

Shit, this is starting to get more complicated.

May 10 2016, 6:47 AM · Arma 3
Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

If we have the ability to remove unique items (only a classname is needed), unique magazines (only a classname and an ammo count is needed), and unique weapons (a classname, a list of attachments, and a list of magazines and their ammo counts is needed), I don't see the need for item IDs.

May 10 2016, 6:47 AM · Arma 3
Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

Well, let's say you have a container with two MXs: one with a silencer, ARCO, flashlight, and a full magazine, and the other has an ACO, laser pointer, and a half-empty magazine.

What if you want to only remove the gun with the laser pointer?

We need to be able to get a list of the unique items in a container and then remove any individual item we want.

This can be achieved via item IDs (e.g. removeItemCargoID), item indices (e.g. removeItemCargoIndex), or by describing all of that item's attributes that make it unique. For magazines, that would be the magazine type and its ammo count. For weapons, that's its type, attachments, magazines, and ammo counts.

I think Japa mentioned some problem with using item IDs at some point.

The problem with the second method is that you'd have to iterate through all the items inside a container to figure out which index the one you want to remove is.

The problem with the third is that it's maybe a bit messy with all those parameters.

I guess there should maybe also be a command for removing the first instance of a specified weapon type, regardless of attachments and all that other stuff.

There should probably also be a command like that for magazines. I'll add those to my first post.

All I know is that I would find the ability to remove a specific weapon incredibly useful.

Also, good call on the bold. Adding that to my first post, too.

May 10 2016, 6:47 AM · Arma 3
Outlawled added a comment to T73645: Scripting Command: addMagazineCargoEx for Bullet Counts.

Here's a list of what I would like to have in terms of scripting commands for inventory management. Because I know that the developers have been laying in bed every night since release thinking to themselves "What would Outlawled do if he were a developer? Also, where did he get that jacket? That's a super nice jacket."

And, while I can't help you out with the jacket as I don't remember where I got it, here is the list of scripting commands I want (I've included some commands that are already in the game so that there is a complete list):

container <b>addMagazineCargo</b> [classname, magazineCount];
container <b>addItemCargo</b> [classname, itemCount];
container <b>addWeaponCargo</b> [classname, weaponCount];
container <b>addBackpackCargo</b> [classname, backpackCount];

container <b>addSingleMagazineCargo</b> [classname, bulletCount];
container <b>addSingleWeaponCargo</b> [classname, [attachments], [[magazineClassname1, bulletCount], [magazineClassname2, bulletCount]]];

_backpackContainerObject = container <b>addSingleBackpackCargo</b> classname; Returns the added backpack's corresponding container object.
_uniformOrVestContainerObject = container <b>addSingleItemCargo</b> classname;
Returns objNull or, if the added item is a uniform or vest and therefore has a corresponding container object, the container object will be returned.

<b>clearMagazineCargo</b> container;
<b>clearItemCargo</b> container;
<b>clearWeaponCargo</b> container;
<b>clearBackpackCargo</b> container;

container <b>removeSingleMagazineCargo</b> classname;
container <b>removeSingleItemCargo</b> classname;
container <b>removeSingleWeaponCargo</b> classname;
container <b>removeSingleBackpackCargo</b> classname;

container <b>removeSingleMagazineCargo</b> [classname, bulletCount];
container <b>removeSingleWeaponCargo</b> [classname, [attachments], [[magazineClassname1, bulletCount], [magazineClassname2, bulletCount]]];
container <b>removeSingleContainerCargo</b> containerObject; // "containerObject" referring to the container object that you want to remove from "container."

<b>getMagazineCargo</b> container;
<b>getItemCargo</b> container;
<b>getWeaponCargo</b> container;
<b>getBackpackCargo</b> container;

<b>getMagazineCargoDetail</b> container; returns all magazines and their current ammo counts in format [classname, bulletCount]
<b>getWeaponCargoDetail</b> container;
returns all weapons and their attachments, loaded magazines, and current ammo counts in format [classname, [attachments], [[magazineClassname1, bulletCount], [magazineClassname2, bulletCount]]]
<b>getContainerCargoDetail</b> container; // returns all uniforms, vests, and backpacks and their associated container objects in format [containerObject, itemClassname]

container <b>canAddMagazineToCargo</b> classname;
container <b>canAddItemToCargo</b> classname;
container <b>canAddWeaponToCargo</b> classname;
container <b>canAddBackpackToCargo</b> classname;

These, plus the appropriate global variants, are the only scripting commands I will ever need, and I want them. I want them so hard.

I don't care what you call them... <b>magazineCargoEx</b>, <b>singleMagazineCargo</b>, <b>outlawledIsAnIdiotMagazineCargo</b>, <b>outlawledLikesBoysMagazineCargo</b>.

Seriously. Call them whatever, just please put them in the game.

I will love you forever, Japa.

May 10 2016, 6:47 AM · Arma 3