Blockland Forums > Suggestions & Requests
Can Someone Add An Ammo Mod To this Bow?
<< < (4/5) > >>
jes00:

--- Quote from: Mounds Bar on July 01, 2013, 04:48:32 PM ---Ya, could you make it so when you run out of arrows it doesn't play the loaded bow animation anymore, and then says that no more arrows thing.

--- End quote ---
Already did it.

--- Quote from: Mounds Bar on July 01, 2013, 04:48:32 PM ---Also, I think you should have to have a quiver on your back for ammo, you have to have it in your inventory and when you have it it auto-equips and gives you arrows for your bow, when it runs out of arrows, the quiver is auto-removed from your inventory.

--- End quote ---
Yeah, I think I may be able to do that.

--- Quote from: Mounds Bar on July 01, 2013, 04:48:32 PM ---P.S. Do you model?

--- End quote ---
Probably enough to take the quiver out of the player doll and export it.

--- Quote from: swollow on July 01, 2013, 04:57:45 PM ---also jes
%obj.setImageAmmo(%slot,0);
stateTransitionOnNoAmmo[1]      = "Empty";

--- End quote ---
Already done before you posted it.

--- Quote from: swollow on July 01, 2013, 05:00:30 PM ---wait is jes jasa theres no way

--- End quote ---
No. I'm definitely not.

EDIT: Lol.

jes00:

--- Quote from: Mounds Bar on July 01, 2013, 04:48:32 PM ---Also, I think you should have to have a quiver on your back for ammo, you have to have it in your inventory and when you have it it auto-equips and gives you arrows for your bow, when it runs out of arrows, the quiver is auto-removed from your inventory.

--- End quote ---
You sure? It seems kind of cumbersome to have to get the bow and quiver.

Right now I have the bow finished, arrow ammo that you can pick up that gives you 5 arrows (you also drop arrow ammo if you have any when you die), and a quiver you can pickup that gives you 25 arrows. Nothing happens when you pickup the quiver, other than it giving you 25 arrows.
Swollow:

--- Quote from: jes00 on July 04, 2013, 09:05:34 AM ---You sure? It seems kind of cumbersome to have to get the bow and quiver.

Right now I have the bow finished, arrow ammo that you can pick up that gives you 5 arrows (you also drop arrow ammo if you have any when you die), and a quiver you can pickup that gives you 25 arrows. Nothing happens when you pickup the quiver, other than it giving you 25 arrows.

--- End quote ---

--- Code: ---package removeQuiver
{
function GameConnection::removeQuiver(%cl)
{
if(!isObject(%cl.player))
return;

%pl = %cl.player;
%pl.hideNode("quiver");
}
function GameConnection::applyBodyColors(%this,%overRide)
{
if(isObject(%this.minigame))
%this.schedule(5,removeQuiver);

return parent::applyBodyColors(%this);
}
};
activatePackage(removeQuiver);
--- End code ---
I leave this here, idk
jes00:

--- Quote from: swollow on July 04, 2013, 10:12:07 AM ---
--- Code: ---package removeQuiver
{
function GameConnection::removeQuiver(%cl)
{
if(!isObject(%cl.player))
return;

%pl = %cl.player;
%pl.hideNode("quiver");
}
function GameConnection::applyBodyColors(%this,%overRide)
{
if(isObject(%this.minigame))
%this.schedule(5,removeQuiver);

return parent::applyBodyColors(%this);
}
};
activatePackage(removeQuiver);
--- End code ---
I leave this here, idk

--- End quote ---
I know how to code swollow. Also, it's it's also kind of pointless to define a player variable if you are only going to use it for one line of code.
Mounds Bar:

--- Quote from: jes00 on July 04, 2013, 09:05:34 AM ---You sure? It seems kind of cumbersome to have to get the bow and quiver.

Right now I have the bow finished, arrow ammo that you can pick up that gives you 5 arrows (you also drop arrow ammo if you have any when you die), and a quiver you can pickup that gives you 25 arrows. Nothing happens when you pickup the quiver, other than it giving you 25 arrows.

--- End quote ---
I know it seems kind of cumbersome, but this is a matter of realism, where would you hold 25 arrows? Shove them all up your ass? XD

Also, the quiver isn't an inventory item, it's an just an item you walk over and it equips to your back allowing you to have 25 arrows, if you already have a quiver equipped and you walk over a quiver it just allows you to have the ones you already have plus a few from the bow because the max total of arrows your quiver can hold is 25.

Also, when you die, the quiver unequips as does your ammo.
Navigation
Message Index
Next page
Previous page

Go to full version