• 0

    posted a message on [Pathing] Make Workers Collide While Mining

    And... done! 

     

    I think they must have patched that issue with behaviors; I ran a couple more tests to see if stacking the behaviors/having multiple units gathering broke anything, and it all seemed to work fine.  I set the search launch to source like you said, and attached an actor to it to see if it behaved, and sure enough it did.  It turned out I'd made a dumb mistake with the target sort that was also making things break.  And yeah, testing the validators one by one in a simple ability revealed the issue (stupid requirement-type validators check the inverse case by default...). 

     

    Thanks again for everything :). 

    Posted in: Data
  • 0

    posted a message on Ability Array

    I think this is the kind of thing DrSuperEvil meant:

     

    Ability Effect:  Ability_Switch:

        Case 1: [Validator: Unit Compare Behavior Count (> 0)] Effect: Ability_Set_1:

            Ability_Primary_Effect (Whatever the ability does)

        Case 2: [Validator: Combine (Unit Compare Behavior Count (= 0) AND Unit Compare Vital (Energy >= Cost)] Effect: Ability_Set_2:

            Ability_Drain_Energy (Modify Unit: Energy: -Cost)

            Ability_Primary_Effect (Whatever the ability does)

     

    Basically use a switch to check if the unit either has the behavior or has enough energy, and in the second case use the modify unit effect to simulate the energy cost in addition to the main effect of the ability.  The switch uses four validators and four effects, plus however many you need for the ability itself.

     

    Hope this helps!

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    Okay, hopefully the last question.  I've iterated several times from your method to get one that works for my needs.  Right now everything works as intended, at least as far as I've been able to test so far, except for two bugs: 

     

    I'm using a "being gathered" behavior based on your "hasmine" behavior to track who's mining which resource (instead of using a persistent taskmaster effect for that).  When the resource dies due to running out of resources or being killed, the "being gathered" behavior has a death effect that (1) searches the nearby area for a new resource, (2) transfers the behavior to that resource, then (3) orders the worker who "owns" the old resource to gather the new resource instead.  However, the search actually seems to be centered on the worker, not the resource, so if he's off returning resources when the resource dies, he'll start gathering whatever's closest to him instead of staying near where the player told him to gather. 

     

    Do you know how to make the search effect center on the dying resource like it's supposed to?  I've tried a bunch of values for both the Target: Impact Location and the Target: Launch Location with no apparent effect. 

     

    The second bug is minor: I want to be able to carry 20 resources when I have a "wheelbarrow" upgrade, but only 10 without it.  However, the "Player Requirement" validator I'm using doesn't seem to work, so my units can always carry 20.  It isn't a huge deal if I can't get this one sorted; I'll just remove the upgrade.

     

    In any case, thank you so much for all your help with this!  You are absolutely getting an honorable mention on this map; there's no way I could have figured this system out on my own. 

    Posted in: Data
  • 0

    posted a message on need help with events

    I don't believe there is a simple event for that.  Instead, you want to use the unit takes damage event, and set a condition to check the life: Comparison: Unit Property: ((Triggering unit) Life (Current)) < 1000. 

    Posted in: Triggers
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    Ahh.  That's a lot easier, yeah. 

     

    Second question: Do you know of a way to make the workers not count as idle while gathering?  I'm running into that as I build my system.  I was hoping that in the "hasmine" behavior I could just add something so it wouldn't be classed as a worker (and so wouldn't count towards the idle workers button) while it had a mine, but no luck.

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    The method with the 300 validators?  I saw that and my eyes crossed :).

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    The terrazine refinery, you mean?  It was a really neat concept :).  For my map I only need the basic gather ability, but the idea of processing two resources into a third one is very cool, and explained my initial confusion as to why you had the harvesters drop buffs on the Depot instead of just giving the resources directly.  I can see it being great for more in-depth Civilization-type maps

     

    The auto-work feature was interesting, but for me frustrating because my units started going off based on logic I didn't understand yet.

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    Ah.  I think I like your way better regardless; I tried it with abilities and couldn't get the Issue Order to work right (at least, I think that was the error), plus I'd need to basically have a "master" ability switch between each resource.  I think/hope your behavior-based method will be simpler.

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    Hoo boy.  No abilities used at all??  Wow :). 

     

    I think this has what I need to make my own harvest abilities.  Thanks!

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    No luck on the Always Check Collision flag.  From what I've seen it's used on missiles to make Reaver scarabs. 

     

    I'll take a look at your demo map.  Hopefully it's a little cleaner (or at least easier to grasp) than the incomplete ability in the War3Data mod! 

     

    Thank you for your help; I appreciate it :).  Will update once I've looked at your map. 

    Posted in: Data
  • 0

    posted a message on [Pathing] Make Workers Collide While Mining

    Hey all,

     

    I would like to make a mod where workers DO collide with each other and other units while mining, instead of being able to "mineral walk" like they can in the base game.  I've looked through the SCV's unit properties, its mover, its gather ability, the minerals' resource behavior, and the subsequent mineral carry behavior, and I can't find anything that does this.  Did I just miss it? 

     

    Thanks!

    Posted in: Data
  • 0

    posted a message on [Solved][Footprint] Building footprint failing after trigger placement

    All right, after some more hours on the issue I figured it out.  Turns out it was something unrelated - because this building is also a builder unit (using SCV - Build), while it is in the process  of building it seems to think it has no footprint and can shift-queue a building on top of itself.  After I reset the footprint and changed only the bare minimum for it to function, it seems to have realized that doesn't work. 

     

    Thank you for your feedback - it at least got me looking in the right area to look at and revert the footprint!  I really appreciate your help. 

    Posted in: Data
  • 0

    posted a message on [Solved][Dialog] Display Black Screen During Dialog

    Awesome :).  I went with the second option, and it seems to be working great once I imported a pure-black image for it. 

     

    Thank you all for your suggestions -- I really appreciate them! 

    Posted in: Triggers
  • 0

    posted a message on [Solved][Footprint] Building footprint failing after trigger placement

    Hi everyone,

     

    I have made a map that places a custom command center building using the "Set Starting Units for Player" action.  The command center itself uses a 3x3 contour footprint with slight modifications (it can only be placed near resources). 

     

    However, about half the time the command center footprint doesn't work -- I can build right on top of it!  Does anyone know why this is happening/how to fix it?

     

    Thanks!

    Posted in: Data
  • 0

    posted a message on [Solved][Dialog] Display Black Screen During Dialog

    Hi all,

     

    I am making a map where I first present players with a dialogue box where they choose their faction.  If possible, I would really like the rest of the screen to be black for this choice - no UI, no terrain, no units. 

     

    Hiding the UI and terrain is pretty straightforward, but I have not been able to hide the units; I can still see their snapshots no matter what I try. 

     

    Does anyone know of a way to completely hide all units/terrain/UI while players select a dialog item, then show them again afterward? 

     

    Thanks!

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