• 0

    posted a message on [Data] Accumulative and Multiple Upgrade with Queue

    This tutorial will teach you how to:

    Make a Upgrade with X amount of levels.

    Make it cost more on Each Level.

    Make it Queue Once on the Upgrade Menu.

    Make a Upgrade with X amount of levels.

    Step 1. Go to the Data Editor (F7)

    Step 2. Go to the Upgrade Tab

    Step 3. Duplicate a Upgrade of similar function you want to achieve.

    This example will go with the (Protoss Ground Weapon Level 1)

    The next window will pop up what units I should duplicate It may or may not list any, but it will list the "parent" or original upgrade's unit.

    I will start from scratch and not duplicate any.

    Step 4. After that, change the Max Level of the Upgrade. This will allow you how many time you may repeatably upgrade this upgrade.

    Making the Button

    Remember that tab where you scrolled for the Upgrade. This time hit the Data Source to "Buttons"

    Just make a new button or duplicate one.

    And then Set up the Data for this Button

    Now you have a Button!

    Requirement

    Requirement is not a necessary step but it stops the upgrade from multiqueueing.

    Multiqueueing may cause unwanted gameplay concepts particularly to the player's economy and time.

    Go into the Data Source: Requirement

    Make a new Requirement with a similiar name to your upgrade.

    Make a "And" requirement Node.

    Put TWO "Equal" requirements under the "And" Node

    Under "both" Equal Node, put two more nodes.

    Under "both" Equal Node, make one node a Constant with a value of 0.

    Under "both" Equal Node, make one node a CountUpgrade.

    Make One CountUpgrade with an State of "Queue", and the other "In Progress"

    You should get very something similiar

    Ability

    Next is the Ability Tab

    In your ability tab we are going to be editing the Research ability.

    Each building with a research has its own ability to research.

    In this case we will be editing the "Cybernetic Core - Research" ability

    Edit the Info+ Field. It will bring up the Object Value Select a Empty Button or a Existing One. (Double Click to Edit it)

    Once you are in here. Pick your "custom button" or existing button that this Command/Research will be.

    Next, if you have a "requirement"

    Stick in the State to be Restrictive, and select your requirement that you previous created.

    Next edit in the value such as how much will it cost, time it will research in ETC.

    But make sure, AT THE BOTTOM, put your "Upgrade" there.

    Then push Okay, and you should be good to go.

    Connecting Everything

    Next is the Unit Tab

    Edit the Command Tab on the Cybernetic Core

    Add your Button

    Make the Command Type to "Ability Command"

    The Ability to "Research"

    The Ability COmmand "Your Upgrade"

    Press okay!

    Holy Crap we are done!

    Just kidding.

    There one more thing.

    Go back to where you first created the upgrade.

    Remember where you edited the Max Level?

    Instead of the Max Level Field we will be editing.

    We will be editing the "Effect+" field.

    This is the JUICY PART!

    This may be complicated but, it actually makes sense if you read a little bit into it.

    This is where all the damage, armor, and other interesting stuff are affected once you research the upgrade.

    But there is one missing thing here, which is "accumulative cost".

    Righ click on the top part of the window.

    "Add Effect"

    Type: "Effect"

    What Object will it affect? Well of course, The "Cybernetic Core - Research" ability.

    What Slot will it affect? You know which one, the slot you chose!

    What am I affecting?

    That thing of course!

    But what should I change?

    I can change anything!

    But, what I want to do is add 100 Mineral each time this upgrade is researched. Thus accumulating 100 mineral more each time I research.

    Just remember though, the operation is important. Add will add on to the current amount.

    I.E.

    Intial cost is 0 at the moment. At level 0, it will cost 0. At level 1, it will be 100, level 2 will be 200. Level 3 - 300, Level 4 - 400 and So on.

    If I were to multiply it with a intial cost of 100, it will be, Level 0 100, Level 1, 200, Level 2 - 400, and Level 3 - 800.

    You get the message.

    And there is your Upgrade!

    Hope you enjoy this tutorial.

    Posted in: Tutorials
  • 0

    posted a message on Upgrade Queue

    When I upgrade a weapon or armor, the icon for that upgrade remains and I can queue it up as many time as I want.

    How can I make my upgrade only queue once without having to spam queue it?

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