• 0

    posted a message on If-Then Scripting Help

    Alright well Ive been messing around with the editor and trying to learn the new engine to make old SC maps into new maps, best I can.

    One problem Ive faced is how to figure out how much of a resource a player has and if enough like say 10 (or more) then give that player a unit as a reward to buy other units (like in SC Original/BW). Tried searching the forums to no avail over the last few weeks to see if anyone else did something like this but couldn't find anything with a lot of key word searches.

    What Im trying to do to put it simply is:

    If: Player # Has minerals >= 10
    Then: Give/spawn/create UnitReward at Region #; subtract 10 minerals
    Else: Do nothing

    and continuously loop it.

    I dont know if I have to make variables and if so what to make. Got basically all the basic terrain, terrain painting, unit modifications, custom units, etc down, but just not the scripting language.

    Any help would be appreciated, thanks. (If this is in the wrong forum, please move it to the correct forum. Just saw "Galaxy Scripting and Trigger Libraries" as forum name and figured this would be the best place to post it.)

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