item system request (recipies and owner of item)

millzy

Ultra Cool Member
Reaction score
44
im after a item system that has the features to disable the item if u are not the owner of the item. but not all items some players can have another players items e.g items that drop on death, potions (a player may want to help his ally out by giving him a potion )

im after a recipie system that u can buy the recipie evan tho your inventory is full (and u have the needed items of course) i have not seen this any where.

i need the recipie system to work with 2 types of recipie ways e.g

like 2 rings of silver will make a gold ring.

and recipies where u need the items + a recipie to combine the items e.g boots, gloves of haste, boots of haste recipie will create boots of haste.
 

inevit4ble

Well-Known Member
Reaction score
38
You basically check the inventory for the required items, remove them if true and replace it with the new item.

Not sure how to allow a unit to buy items when inventory is full
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Well, that sort of system requires multiple copies of every item, and it's quite complicated to make recipes too:

What units buy/pick up from the ground will be a Powerup.

When a Powerup is picked up, a trigger runs. If the unit has an empty inventory slot, then Create the actual item for the unit. Otherwise, create
another Powerup at the same point.

The same thing happens when an item is bought.

When an item is created for a unit, set the item's Owner. Every recreation of the item (when dropped, picked up or disabled) will have the same Owner. If the Owner of the item is not the same as the Owner of the unit with the item, remove the item and replace it with a disabled version.

As for the last two, here's some examples.

Trigger:
  • Item with Recipe
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) has an item of type Ring of Regeneration) Equal to True
      • ((Hero manipulating item) has an item of type Bigger Ring of Regeneration Recipe) Equal to True
    • Actions
      • Item - Remove (Item carried by (Hero manipulating item) of type Ring of Regeneration)
      • Item - Remove (Item carried by (Hero manipulating item) of type Bigger Ring of Regeneration Recipe)
      • Special Effect - Create a special effect attached to the chest of (Hero manipulating item) using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
      • Special Effect - Destroy (Last created special effect)
      • Sound - Play RecipeCombo <gen> at 100.00% volume, attached to (Hero manipulating item)
      • Hero - Create Bigger Ring of Regeneration and give it to (Hero manipulating item)


Trigger:
  • Multiple Items
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • ((Hero manipulating item) has an item of type Orb of Power) Equal to True
    • Actions
      • Set Counter = 0
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Item-type of (Item carried by (Hero manipulating item) in slot (Integer A))) Equal to Simple Orb
            • Then - Actions
              • Set Counter = Counter + 1
            • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Counter Greater Than 2
        • Then - Actions
          • Item - Remove (Item carried by (Hero manipulating item) of type Simple Orb)
          • Item - Remove (Item carried by (Hero manipulating item) of type Simple Orb)
          • Special Effect - Create a special effect attached to the chest of (Hero manipulating item) using Objects\Spawnmodels\Other\ToonBoom\ToonBoom.mdl
          • Special Effect - Destroy (Last created special effect)
          • Sound - Play RecipeCombo <gen> at 100.00% volume, attached to (Hero manipulating item)
          • Hero - Create Special Orb and give it to (Hero manipulating item)
        • Else - Actions
 

inevit4ble

Well-Known Member
Reaction score
38
I thought of suggesting the power up idea as you said but what if the hero wants to carry the recipe without completing the "fusion" until later?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
Then the recipe could have an active ability, that forms the resulting item if the unit already has all the required items. It would also mean inability to complete a recipe by picking up an ingredient while a unit's inventory is full, probably one of the reasons DotA doesn't have this function (it causes some annoyances).
 

inevit4ble

Well-Known Member
Reaction score
38
You've possibly misunderstood me or me to you.

I was referring to the dota system where by, say for "Treads" with the ingredients being "Boots of speed" and "Glove of haste" and stat adjustment item, you can hold the boots and the scroll and get the rest of the ingredients later on while hold the recipe and you can buy recipe while inventory is full.

So like the power up idea runs but if the required items aren't held then the scroll item would spawn in inventory instead.

I think that's what I was trying to say?
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
612
In the same vein, that requires a Recipe item, as well as Disabled and Powerup copies.
 

millzy

Ultra Cool Member
Reaction score
44
i know how to create item recipies but im after how to do it if the inventory is full and im after a system to make it easyer instead off 1 trigger for each recipie


this is the only part of the system i have
the shops will sell tomes

just an example set up the variabes

real item[1] = boots
real item[2] = gem
real item[3] = plate

shop item[1] = boots(tome)
shop item[2] = gem(tome)
shop item[3] = plate(tome)


event unit buys and item
condition
actions
for each integer A do actions 1 to 3
if item being bought is = to shop item[loop A] then give real item[loop A]
 

inevit4ble

Well-Known Member
Reaction score
38
That is the system you want. I doubt there's a way to make it simpler because you have to set the items to variables.
And then the tome recipes will allow the hero to purchase with full inventory.
 

millzy

Ultra Cool Member
Reaction score
44
yes but what do i have to do in the system so it creates the recipies if u have the items
 

NotInTheFace

Member
Reaction score
17
Do you understand Jass?

I could give you a copy of an old map I made with full-blown DotA style recipes in it, but it's all in Jass.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
You can allow units to buy items while their inventory is full if you make the base item a rune, then when they pick it up you just give them or their backpack the item the rune is supposed to represent. Be carefull though, you need to remove any buffs on the rune.
 

millzy

Ultra Cool Member
Reaction score
44
Do you understand Jass?

I could give you a copy of an old map I made with full-blown DotA style recipes in it, but it's all in Jass.

jass is not my thing how much do i need to know of jass to use/edit it????

You can allow units to buy items while their inventory is full if you make the base item a rune, then when they pick it up you just give them or their backpack the item the rune is supposed to represent. Be carefull though, you need to remove any buffs on the rune.

you can do the same thing with tomes witch is what im doing....
 

NotInTheFace

Member
Reaction score
17
You would need to know Jass pretty well.
It was the map I used to learn how to do stuff, so it would need a lot of work to get working properly because everything is kind of hacked together.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top