• 0

    posted a message on missing stimpacks ability - campaign dependencies

    @Azzaaer: Go

    Give this a try: go into the dependencies for your map and make sure that all four of the standard ones are there, in this order:

    • Liberty Story (Campaign)
    • Liberty (Campaign)
    • Liberty (Mod)
    • Liberty Multi (Mod)

    You can use the up and down arrow buttons to the left of the "Clear battle.net" button to change the order.

    I believe the way it works is that dependencies that are lower on the list supersede ones that are higher. This seems to have the desired effect of having all the campaign data available to you but still use the upgrades and everything from melee. You will still have to use some triggers or requirements or whatever method you like to get rid of the campaign units you don't want to use, and there might be some other flakiness that has to be taken care of, but this should put you in a good starting position.

    Edit: I see now that Molsterr basically made the same suggestion earlier and it sounds like it didn't work. If you already have them in that order and you're still seeing weirdness, I'm not sure what might be going on there. Might want to just try making a new map with them in that order to start with and see if everything is the way you expect it to be, then go from there.

    Posted in: Miscellaneous Development
  • 0

    posted a message on placing upgraded bunkers

    From what I've been able to tell (and my familiarity with the way the editor works is admittedly noobish), the bunkers with shrike turrets are not a separate unit, they're just regular bunkers with an upgrade. The easiest way to make them available seems to be to make a trigger that runs at map initialization which adds one level to the "Story Mode Tech - (Bunker) Shrike Turret" upgrade for whatever player you want to have it. Of course this will make every bunker for that player into a bunker with a turret. If you wanted to be able to mix and match, I assume that'd require duplicating the bunker unit and only giving the shrike turret weapon to one of them, but that's beyond my knowledge at this point.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Is there a better way?

    @SouLCarveRR: Go

    I definitely considered that, but my plan for the map is to basically give the player(s) access to strictly melee units and upgrades in the beginning and then offer the opportunity to find/research all of the extra stuff that the campaign had as well during the course of exploring the map. That being the case I decided it would be more appropriate to do it the same way as the campaign and have a pair of research options that make the original upgrades better.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Is there a better way?

    Hoping to get a little bit of insight here. I had a problem that seemed fairly trivial at first, but I ended up having to do a lot of crazy things to take care of it. My solution works but seems extremely inelegant, so I'm wondering if there was a better way. A word of warning though, what follows is a massive wall of text. I won't be offended if nobody has the patience to read through the whole thing, but I figured I'd give it a try on the off chance that somebody makes it through and has some wisdom to share.

    First, the problem. I wanted to add the Ultra-Capacitor and Vanadium Plating upgrades from the campaign into a map. For anybody who hasn't played the campaign, these add an attack speed bonus to weapon upgrades and a maximum life bonus to armor upgrades, respectively.

    Unfortunately it turned out that the way the upgrades are implemented, it's a little more complex than just adding a couple research abilities. The way it works is that each normal weapon and armor upgrade has a corresponding "enhanced" version for when you have the appropriate research. The normal upgrades have an additional requirement to make them not show when you have the research for the better versions and likewise the better ones have a requirement to make them only show when you do.

    At any rate, here's the problem if it's not immediately obvious: this setup was not designed to allow you to get the Ultra-Capacitor or Vanadium Plating upgrades during the course of a mission, since that would never happen in the campaign. What happens is that when you research either of these upgrades, you simply lose access to the original upgrades and gain access to the new ones, which are completely separate entities. Thus you retain all the normal upgrades that you may have already gotten and now start back at level 1 for the buffed ones.

    So here's what I did. I made two triggers, one that runs when you complete the Ultra-Capacitor research, one for Vanadium Plating. Basically for each level of infantry, vehicle and ship weapons and armor I set the level of the enhanced upgrade to be the level of the normal upgrade, then I set the level of the normal upgrade to 0. This works perfectly, though it's basically two triggers with 18 very similar actions that seems like could have been done more efficiently using some sort of loop, maybe using galaxy script?

    Anyway, that fixes the existing upgrades but does nothing for upgrades in progress. If the player is researching one of the normal upgrades when they complete the research for Ultra-Capacitors or Vanadium Plating, that upgrade will continue as normal. In addition, they'll have the same level of the enhanced version of the upgrade available to them (so if they're researching Infantry Weapons Level 3 when the Ultra-Capacitors research finishes, they'll still get that upgrade when it completes AND they'll be able to research the Ultra-Capacitors version of level 3 as well). My fix for this was to make 18 more triggers, one that fires upon the completion of each of the 18 normal upgrades that each check to see if the research for the enhanced version has been obtained. If so, the normal version's level is set to 0 and the better version's to 1.

    Finally I just added requirements to all of the enhanced versions so that they won't show if the same level of the normal version is queued or better, removing the issue of the better version showing up while the normal is in progress. That part seems like the only thing I might have actually done right.

    Whew! Okay, so if anybody is still with me and in the mood to give this some thought, was this just the stupidest way to go about things? Is there some ridiculously simple change I could have made or just a couple lines of script I could have written to avoid having to make all these triggers and requirements?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Removing Siege tank requirements?

    Find the "Siege Tank - Siege" ability and double-click Ability - Commands, then double-click the "Execute" command. You should see that it says "Requirement: Use Siege Mode." Click the red X in the bottom right corner of the window and that will remove the requirement.

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