• 0

    posted a message on Change building's space requirements

    @muniek:

    The model that causing the "shadow" is the Supply Depot Splat model. Scaling this model (both minimum and maximum) will change the "shadow".

    Posted in: Data
  • 0

    posted a message on Kill count rewards

    @chubz04:

    oh btw, those local variables need to be global variables.

    Posted in: Miscellaneous Development
  • 0

    posted a message on Kill count rewards

    Very quickly, I came up with this.

    Kill Rewards
        Events
            Unit - Any Unit dies
        Local Variables
            Player Kill Rewards = 0 <Integer[8]>
            Player Kills = 0 <Integer[8]>
        Conditions
        Actions
            Variable - Modify Player Kills[((Killing player) - 1)]: + 1
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    And
                        Conditions
                            Player Kill Rewards[((Killing player) - 1)] < 1
                            Player Kills[((Killing player) - 1)] >= 100
                Then
                    Player - Modify player ((Killing player) - 1) Minerals: Add 100000
                    Variable - Modify Player Kill Rewards[((Killing player) - 1)]: + 1
                Else

    Add more If statemets in there for each additional reward if they are different.

    If the rewards are all the same and at the same interval, you can do something like this:

    Kill Rewards
        Events
            Unit - Any Unit dies
        Local Variables
            Player Kill Rewards = 0 <Integer[8]>
            Player Kills = 0 <Integer[8]>
        Conditions
        Actions
            Variable - Modify Player Kills[((Killing player) - 1)]: + 1
            Variable - Modify Player Kill Rewards[((Killing player) - 1)]: + 1
            General - If (Conditions) then do (Actions) else do (Actions)
                If
                    Player Kill Rewards[((Killing player) - 1)] >= 100
                Then
                    Player - Modify player ((Killing player) - 1) Minerals: Add 100000
                    Variable - Set Player Kill Rewards[((Killing player) - 1)] = 0
                Else

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