• 0

    posted a message on Mass record/strut changing. Same variable names.
    • I have a bunch of records with variables inside them with the same variable names. Am I able to change or switch how the records within a trigger with a another record?

    For example. Using two records, and having those records being used in this demonstration trigger below

    (Name)

    • Record (Data1)
    • Variables (Imput), (Output), (Life)
    • Record (Data2)
    • Variables (Imput), (Output), (Life)
    • Events
    • Unit Dies
    • Local Variables
    • Condition
    • Action
    • Set (Data1),(Life) to 100
    • Set (Data1),(Imput) to 1
    • Set (Data1),(Output) to 0

    Now is it possible to switch those records via separate trigger to make it.... without making tons of triggers?

    • Events
    • Unit Dies
    • Local Variables
    • Condition
    • Action
    • Set (Data2),(Life) to 100
    • Set (Data2),(Imput) to 1
    • Set (Data2),(Output) to 0
    Posted in: Triggers
  • 0

    posted a message on What specific part of the Editor should I learn to get this

    I generally use Wc3 editor so my experience in what Sc2 editor has to offer is limited, I would like a heads up to into what sort of tutorial I should look into to achieve this in my map efficiently and quickly, instead making tons n tons of triggers n variables.

    These 3 things are all somewhat similar.

    1 - Automatic attacking laser shooting at a specific arc of the side of a enemy unit. E.x Shooting a laser at 35 degrees to 115 degrees at a nearby target within range. I think I could utilize the phoenix for this

    2 - Bullet shooting from a specific arc like #1 but goes in a straight line at the direction of enemy unit

    3 - Mouse oriented rocket. Right click within a unit arc range like #1. And where the mouse clicks will shoot a missle towards that. (I think this one will require triggers)

    I already know how to use turrets to "look at" a specific target. (Currently doing a tutorial for turrets) However I would like to be pushed in the right direction in regards to how to do stuff similar to above, unless these things are only possible via trigger/customscript.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Record / Strut Help. Please

    Oh my god! Thank you! That was exactly the problem!

    Although it is a bit odd you need to do that extra step, regardless this fixes my issue! I had a few things working when I did it the local method which give the game more performance. But this method shouldn't be too much more effort.

    Posted in: Triggers
  • 0

    posted a message on Record / Strut Help. Please

    I been trying to figure out why I am unable to set variables within my records via action. This has absolutely devastated my progress in my map.

    Here is a demonstration of what I am trying to achieve. (Not actual codes from map but I can give that if requested)

    (Name)

    • Record (Data)
    • Variable - (Test)[Integer]
    • Trigger
    • Event Elapsed time 2 seconds
    • Local Variable
    • (Data)
    • Action
    • Set variable (Data).(Test) to 5
    • Trigger
    • Event Elapsed time 3 seconds
    • Local Variable
    • (Data)
    • Action
    • Display , convert integer to string (Data).(Test), to all players to subtitle area

    What this should be doing is showing me the number 5 after 3 seconds in the game, however this is not the case. Nothing happens. However, if I were to change the (Data).(Test) into a string and initially set it as 5. Then it works. This is proving that I am failing to set the variable for the record

    This is confusing so I'll ask the question in a different way.

    I am having issues setting variables within records through actions. I already have variables inside records, and the triggers has the local variable record already. I want to be able to change a variable inside a record.

    Please help, and again if necessary I can post actual codes from my map.

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