• 0

    posted a message on [Trigger] Deletion of a SPECIFIC inventory item?

    Enable Liberty.SC2Campaign under dependencies and then take a look at the Healing Potion items, those are items with charges, too. Just modify them to suit your needs.

    Edit: Be careful when you use Talon0815's trigger, because it will remove the scrap metals nonetheless, when you use the ability and you only have 1 or 2 of them.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Random spawning of items?
    Quote from happy04: Go

    @Mesothere: Go

    the region over the entire map is unnecessary, you can simply press "entire map"

    Oh, right, I totally forgot that.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Random spawning of items?

    First, create a region that covers the whole map. Then create this trigger:

    **Events**
    Map Init
    **Local Variables**
    i = 0 <Integer>
    x = how many units you want <Integer>
    **Conditions**
    None
    **Actions**
    For every Integer i from 1 to x with increment 1, do Actions
    * Create 1 Unit for Player 2 at Random Point between lower left of region and upper right of region
    

    Note: That's not the actual wording in the trigger editor, I don't have the english one.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Deletion of a SPECIFIC inventory item?

    Well, there is no trigger that allows you to do that. Maybe you can do something with the trigger that allows you to move items to different inventories.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Trigger] Deletion of a SPECIFIC inventory item?

    You could make the meat a consumable item with 1 charge and just remove the ability from the unit.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Possible to create persistant data for new games?

    These banks work for multiplayer, they're used in the Card Game by Clord to save something like player experience. But I think these banks are stored locally, so they might be hackable.

    Posted in: Miscellaneous Development
  • 0

    posted a message on [Data] Moving from World Editor to Galaxy Editor (part 2)

    Yes, you could use local variables in WC3, but only via Custom Script/JASS.

    Anyway, nice tutorial.

    Posted in: Tutorials
  • 0

    posted a message on [Data] Create a WC3-like experience sharing system

    @Ranctifier: Yes, you just have to change the Shared Radius to something a lot higher. I think 40 or something like that might be 2.5 screens.

    And the problem with the heroes is, when a hero kills a unit the xp is split equally between all the heroes in the Shared Radius (that's the way it is in WC3). But to emulate that you have to change the Shared Fraction to 1/2 for 2 heroes in the Shared Radius, to 1/3 for 3 heroes, to 1/4 for 4 heroes etc. and that's not possible with only the data editor afaik.

    Posted in: Tutorials
  • 0

    posted a message on [Data] Create a WC3-like experience sharing system

    Create a WC3-like experience sharing system

    Introduction

    This tutorial will teach you how to create a WC3-like experience system. So not only the killing unit gets the experience, but all nearby heroes get the experience.

    Note: This tutorial wont teach you how to create a hero unit. I recommend Bifuu's tutorial for that: Complete Hero Tutorial

    For non-hero units

    1. Create a Behavior of type Veterancy and call it whatever you want.

    2. Set the Flags to Hidden.

    3. Check Ally in the value for Kills in Share Filters and set Heroic to required.

    4. Change the value for Kills in Shared Fraction to 1.

    5. Change the value for Kills in Shared Radius to 10.

    6. Now give this behavior to all the non-hero units in your map.

    7. And give every hero in your map the attribute Heroic.

    For hero units

    I did not find any way to exactly replicate WC3's experience system via the data editor yet, when multiple heroes are in action and one of the heroes kills a unit. The best way is to repeat every step and then change the Shared Fraction to something that suits your needs better.

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