Sheep Wars - Rounds System or "Rematch system"

KvickaN

TH.net Regular
Reaction score
24
Hello everyone.

You might know about my current project named Sheep Wars.

I've come so far that I want a rounds system or "Rematch system".

The thing is I don't know how to make one or even where to start. I've searched the forums and I've had no luck so far.

Could anyone point me in the right direction or even give a useful link?

Would be appreciated, thanks.
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
i dont now about your project but you could create a fade filter then remove all units from the game like the game has just started
EDIT: i tested your map and its very funny but i would create some blood whenever the sheep attack and whats that "are you ready" dialog thingy at the beginning??
 

KvickaN

TH.net Regular
Reaction score
24
i dont now about your project but you could create a fade filter then remove all units from the game like the game has just started
EDIT: i tested your map and its very funny but i would create some blood whenever the sheep attack and whats that "are you ready" dialog thingy at the beginning??

The dialog in the beginning was just for me to learn how to use dialogs, haha. It does nothing really...

Will consider the blood when attack thingy. Is there an easy way? or do I have to create a special effect whenever a unit is attacked?

Fade filter, remove all units and run starting triggers?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
Code:
E: a unit is attacked
C:Unit type equal to teal sheep or red sheep or blue sheep or gray sheep
A: create specialeffect using blalal
 Destroy (last created specialeffect)
that should make it

run triggers like create farm for all players playing and so on
 

KvickaN

TH.net Regular
Reaction score
24
Code:
E: a unit is attacked
C:Unit type equal to teal sheep or red sheep or blue sheep or gray sheep
A: create specialeffect using blalal
 Destroy (last created specialeffect)
that should make it

run triggers like create farm for all players playing and so on

Thanks, I'll let you all know how its going with the rematch system when I encounter a problem or something like that. :)

Results of blood effect:
Code:
Sheep Blood Effect
    Events
        Unit - A unit Is attacked
    Conditions
        Or - Any (Conditions) are true
            Conditions
                (Unit-type of (Attacked unit)) Equal to Red Sheep
                (Unit-type of (Attacked unit)) Equal to Blue Sheep
                (Unit-type of (Attacked unit)) Equal to Teal Sheep
                (Unit-type of (Attacked unit)) Equal to Purple Sheep
    Actions
        Special Effect - Create a special effect at (Position of (Attacked unit)) using Objects\Spawnmodels\Human\HumanLargeDeathExplode\HumanLargeDeathExplode.mdl
        Special Effect - Destroy (Last created special effect)
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
then goodluck and have fun mapmaking but dont stop making the map before its finished (that happened often to me)
 

KvickaN

TH.net Regular
Reaction score
24
then goodluck and have fun mapmaking but dont stop making the map before its finished (that happened often to me)

Trust me, this aint my first map :)

------------------------------------------------

Got a problem...

When I have done the rematch the upgrades is still there. I tried this:

Code:
Player Group - Pick every player in (All players) and do (Actions)
    Loop - Actions
        Player - Set (Picked player) Current gold to 0
        Player - Set the current research level of Sheep Armor to 0 for (Picked player)
        Player - Set the current research level of Sheep Damage to 0 for (Picked player)
        Player - Set the current research level of Sheep Health to 0 for (Picked player)
        Player - Set the current research level of Sheep Attack Speed  to 0 for (Picked player)

But only the gold resets I don't see the tech go down. Any solutions?
 

Drunken_God

Hopes to get back into Mapmaking with SC2 :)
Reaction score
106
oha
i dont think there is a way to decrease upgrades :(
make different upgrades for each round and then add the upgrades to your farm
 

OneBadPsycho

10100111001
Reaction score
93
Try using a Tech array variable to store the upgrade when a player researches it, and then reset that. (Dunno if it would work).

-And for the rematch try making most of your triggers, so you could run them again and again.
 

KvickaN

TH.net Regular
Reaction score
24
You need to recreate all units manually and reset all variables like score. There's no magic system. Although one could be written for recreating all starting units.

How do i reset variables? Gonna go search now and if I don't find I will check back here for a possible answer :D

Cuz I found Tech-Type with array like below:

Code:
Set Upgrades
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Set Upgrades[1] = Sheep Armor
        Set Upgrades[2] = Sheep Damage
        Set Upgrades[3] = Sheep Health
        Set Upgrades[4] = Sheep Attack Speed

Just don't know how to make it reset to upgrade 0 if you guys know what I mean.
 

trb92

Throwing science at the wall to see what sticks
Reaction score
142
^
That won't work, you cannot reduce the level of a research once it has been learned. You'll have to go with
Drunken_God said:
make different upgrades for each round and then add the upgrades to your farm
What he means is that you make copies of your upgrades, one for each round they could possibly play, and change the upgrades the farm can research every round.
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
Or you can change the way upgrades work.

Make a hero and hide it. Make upgrades that do nothing. When a player researched an upgrade, with triggers, make the hero learn an aura ability, increasing either attack, dmg, attack speed, etc. The Aura should have a global Range.
 

KvickaN

TH.net Regular
Reaction score
24
Or you can change the way upgrades work.

Make a hero and hide it. Make upgrades that do nothing. When a player researched an upgrade, with triggers, make the hero learn an aura ability, increasing either attack, dmg, attack speed, etc. The Aura should have a global Range.

Wow :D Thanks alot =)

+rep to you all.
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top