Author Topic: Add ammo event for T+T weapons.  (Read 483 times)

I'm making a loot system for a server and I would like to make it so players can buy ammo. I'm using T+T and it would be easier if there was an output event that could give the player ammo.

Example:
onPromptAccept > Player > AddAmmo > (select ammo type from drop down) > (amount)

Technically I could give the player an ammo item that they'd have to drop and pick up but it's pretty inconvenient and may confuse players. It might also be frustrating in the event that the player accidentally buys ammo when their inventory is full, so if someone could make this I'd be appreciative.

This event would be very helpful but the system of buying items isn't really what t+t is built for. In any case, for now, consider spawning the item from a brick with the spawnitem default event.

This event would be very helpful but the system of buying items isn't really what t+t is built for. In any case, for now, consider spawning the item from a brick with the spawnitem default event.

I understand the whole 'this is not the intended use' but unfortunately I suck at coding and so while T+T probably isn't designed for this purpose at all, it works, and I'd imagine I'm going to have a very difficult time trying to find anything else that would work better. The reason I didn't want to use spawnItem was because you could still pick it up multiple times. But I've figured it out anyway after finding a fix for the onItemPickup event.

Either way I don't need this anymore but I will keep it up in-case anyone else wants it.
« Last Edit: November 06, 2015, 01:52:10 PM by Rally »

all of bushido's weapons/addons in general are horribly organized and as a result incredibly hard to edit, but it is theoretically possible and easy to make once one figures out what files are what.

if there's some sort of demand i could take a stab at it.