Hey, I am a risk map maker, am a big fan of risk legacy on Starcraft 2. I play a lot, my username is Axis.
I am currently working on a map called: Risk Destiny
I need some help with creating the triggers for my map.
This is my first time posting on here so will keep it brief.
I would like some assistance working on a drafting system for my risk map,
I want help on a trigger that makes free units spawn at the centre of countries.
I want to edit this trigger so it only give you units for 3 turns thens turn off. If someone else takes the nation off you and you get it back the trigger will reset so you receive the free units for another 3 turns.
Have a lot of other triggers I need help with but just want to meet some people and talk more from there.
Now, when a player receives a country, run this Action (you will have to create this action):
GiveCountry(Player<Integer>,Country<CountryPreset>){c=ConvertPresetToInteger(Country)If(Player!=CountryOwner[c])){
TurnsOwned[c] = 0
CountryOwner[c] = Player
}
}
}
That should do the trick for ya, or at least get you close. There might be a change that you want to make: If a player steals a country, BUT the original player takes back the country Before the turn ends, should that player have his spawns reset? If so, you'll have to mod it a little bit.
Hey, I am a risk map maker, am a big fan of risk legacy on Starcraft 2. I play a lot, my username is Axis.
I am currently working on a map called: Risk Destiny
I need some help with creating the triggers for my map.
This is my first time posting on here so will keep it brief.
I would like some assistance working on a drafting system for my risk map,
I want help on a trigger that makes free units spawn at the centre of countries.
I want to edit this trigger so it only give you units for 3 turns thens turn off. If someone else takes the nation off you and you get it back the trigger will reset so you receive the free units for another 3 turns.
Have a lot of other triggers I need help with but just want to meet some people and talk more from there.
Any help would be great, Thanks
Okay, so let's assume there are 5 countries. I would start off by making 3 global arrays with 5 size:
...and one preset:
(Make sure to make the first value preset (at position 0) named ''None)
After you have these set up, run this code at the end of a turn, when the units would be spawned and the turn is over:
Now, when a player receives a country, run this Action (you will have to create this action):
That should do the trick for ya, or at least get you close. There might be a change that you want to make: If a player steals a country, BUT the original player takes back the country Before the turn ends, should that player have his spawns reset? If so, you'll have to mod it a little bit.
Good Luck