• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

BloodSoul
BloodSoul
Sylvos
Sylvos
It works at the top!
You always solve my problems, thanks
Sylvos
Sylvos
Another question: I create personalized objects, one based on the construction of the watchtower in Humans. By setting the cost in gold and wood, it changes these parameters to PURCHASE.
When I want to build the building using the object, there is still a cost. But I do not know where to go to change that cost in gold and wood.
BloodSoul
BloodSoul
No problem, man. I'm glad I could help you!

About the cost: are there 2 objects? One of them is a normal unit who builds and the other object is based on a tower?
Sylvos
Sylvos
There are two elements: a unit (the tower) and an object (allowing the construction of the tower).

The object is in the building of purchase.
To buy it, it is necessary to use gold and wood.

Once bought, by clicking on the object, it creates the tower in question and it still requires gold and wood, and even mana! I do not understand why.

For the info, the object is endowed with a skill "construction of a tower" and on this skill appears the created unit (the tower).
BloodSoul
BloodSoul
I tried to reproduce that, but everything worked fine for me. I made a custom tower, a custom arcane vault (item seller), an item (based on tiny barracks), and a modified ''build tiny barracks'' ability. By default, the build tiny barracks doesn't require mana, so its field is set to 0. If you hover the mouse on the item, it shows the amount of gold and lumber you will receive for selling it back to the shop.
BloodSoul
BloodSoul
If that's not how it's working for you map, could you send a demo map with it, so I could reproduce it properly? Thanks.
Sylvos
Sylvos
The map on which I work or a light map with only this?
Sylvos
Sylvos
I found the problem on mana
I also noticed that for an object with several charges, the price of each load of gold and wood decreases with the amount of charge.
Example: a three-charge object
First load -> 220 gold, 60 wood
Second load -> 100 gold, 37 wood
Third load -> 84 gold, 13 wood
I invented the values
Sylvos
Sylvos
I think I understood
An item that requires 200 gold and 200 wood to buy it will require half to be built: 100 gold and 100 wood.
Sylvos
Sylvos
That's right: for an object initially costing 250 gold, and having 5 charges
Charge 1: 125 gold
Charge 2: 100 gold
Charge 3: 75 gold
Charge 4: 50 gold
Charge 5: 25 gold

It is therefore not modifiable, but by default half for the first charge then a regular decrease
BloodSoul
BloodSoul
That's odd, it should set its sell price to half of base price multiplied by the amount of current charges. You can also change the item sell percentage, going to Advanced -> Gameplay Constants... -> Inventory - Sell Item Return Rate (almost in the end of the page).
Sylvos
Sylvos
It's fine, thank you
Sylvos
Sylvos
Another challenge: I tried to redo the fate of Marshmalo in "Siege of Quel'thalas 4.5". In the map, it is possible to buy as object of 'Runes of shock". I can not do the same thing as he does. Do you think you can help me with this? Thanks in advance
BloodSoul
BloodSoul
Sylvos
Sylvos
Thanks again and again
Sylvos
Sylvos
I tested several times, the aura (slow) does not always work
Moreover, when a unit passes on the rune, there is no explosion animation
I tried to do this by trigger starting with Rune Trap
Three special effects appear to be used:
Objets\Spawnmodels\NightElf\NEDeathMedium\NEDeath.mdl
Abilities\Spells\Human\DispelMagic\DispelMagicTarget.mdl
Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl
But it is not really that: Abilities\Spells\Orc\WarStomp\WarStompCaster.mdl gives a red effect, whereas in the map it is in blue that it appears
Maybe it's another trigger that changes the color of the special effect pattern
I don't know….
BloodSoul
BloodSoul
All right, I'll check it out.
BloodSoul
BloodSoul
May I add you on skype again? I had you there, but for some reason it shows an "?" icon next to your name, and I can't talk to you.
Top