• 0

    posted a message on Can I add new player color?

    I was looking through the Gameplay Data tab in the data editor and saw a field for Team Color, I don't think you can add any colors but it looks like you could modify the ones that are there.

    Posted in: Miscellaneous Development
  • 0

    posted a message on shield regen with energy

    I am not sure what you mean by "cast by units owner". Are you looking at something like the broodlords and broodlings?

    Posted in: Miscellaneous Development
  • 0

    posted a message on shield regen with energy

    You will need to create a validator so that your auto-cast will not go nuts and cast even when shields are full. You can also use the existing one “Shield < ¼ HP” if you are satisfied with that.

    1. Go to the validator tab and add a new validator by copying “Shield < ¼ HP”.
    2. Set the “Value” to the percent when you wish the ability to be used. (0 for no shields, 1 for full shields, 0.5 for half shields)

    Next you will need to create an effect.

    1. Go to the effects tab and create a new effect using the “Modify Unit” type.
    2. Go down to the “Vitals” field and change shield to however much you wish to be restored.

    Now that you have your effect and validator you will need to create your ability.

    1. Go to the Ability tab and create an ability of type “Effect – Instant”
    2. Set the “Effect” field to the effect you just created if it was not done automatically.
    3. Select the “Flags” field and check “Auto Cast” (and “Auto Cast On” if you wish for it to start activated).
    4. Open the “Cost” field. And create a new cost(the top section of the new window)
    5. Scroll to the bottom of the cost window and add a new line to the very last box. Setting to energy and the energy cost of the ability.
    6. Open up the “Auto Cast Filters” field and set the filters accordingly. You will probably want Check at least Player at the bottom, and maybe Ally(and probably not enemy)
    7. Set the “Auto Cast Validator” to the Validator from earlier.

    Now you just need to add the ability to the unit’s ability list and the command card. You will probably also want to create a button for the new ability, but it isn’t strictly required.

    Posted in: Miscellaneous Development
  • 0

    posted a message on adding resource upon unit death

    In the Data editor units have a "(none) - Kill resource" field. Whenever you kill a unit, the killing player is rewarded with the resources specified in this field.

    Posted in: Miscellaneous Development
  • 0

    posted a message on How do you add min-max damage to a unit and a chance for units to miss when attacking?

    Giving a weapon a damage range can be done entirely in the data editor by just changing a couple fields without the need of any triggers.

    1. Find the damage effect for the weapon you wish to modify.

    2. Change the "Amount" field to the minimum damage of the weapon.

    3. Change the "Random" field to the size of the range you wish.

    For example: Amount = 5 and a Random = 3 will give your weapon a damage range of 5 - 8.

    I don't know how to add in the miss chance, but fortunately Grogian seems to have found a solution while I was looking.

    I hope this helps.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Video, Data] WC3 Shop Emulation
    Quote from Bifuu: Go

    The only time ive seen that bug is when the shops is set for another player and not neutral, so double check that

    I had player 0 set to neutral, but I also had a trigger that set players 0 - 14 neutral to each other, when I changed the trigger to run for 1 - 14 it all started working. So apparently neutral set to neutral isn't neutral. Thanks for the help.

    Posted in: Tutorials
  • 0

    posted a message on [Video, Data] WC3 Shop Emulation

    Nice work. I had been thinking about how to get an item shop working in my map, this pretty much solved it, and provided some laughs as well.

    The one problem I have had, is my item shop is assigned to Player 0(neutral), and when I set a cost to buy items, they cannot be built because I am not allowed to spend another players resources(curse that greedy player 0). I will look for a solution later when I have time.

    Posted in: Tutorials
  • To post a comment, please or register a new account.