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
613
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
613
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
613
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.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top