First create a new variable, an integer array. I will call it "value", set the size of the array to the max number of players.
Create a new trigger, event should be "map initialization". Here you should set up each array for this variable to 300, so that's every player got a number of 300 which they want to get to 0.
Set Value[1] = 300
Set Value[2] = 300
Set Value[3] = 300 etc...
Create a new trigger with the event "Unit - Any Unit Enters a distance of 1.0 from Unit". 1.0 should be changed to the range you want and unit to the beacon. Add an trigger action, this will activate a third trigger.
This trigger will have the event "Periodic Event" with 1 second so that it checks once ever second if the players unit is still there. If it is then "Set Value[Number of player] = Value - 1, then add a If/then else action and check if Value[Number of player] is less or equal to 0. If it is the player has been there for over 5 minutes!
I just did it to test it out and I didn't save it.
But the trigger looked like this:
Events -
Unit - Unit gains an experience level
Condition -
None
Local Variables -
Stats[1] = 0 (Real Variable)
Action -
Set Stats[1] = Maximum health of triggering unit + 10
Unit - Set maximum health of triggering unit to Stats[1]
This makes the game crash, it looked like what I wrote above!
I have a question regarding to set unit property action. When I try to change the units max hp the game crashes, my friend says that I have to give him a ability which gives him more max hp, is that true or can I do it with triggers?
Ye that sounds great! It's good that you develop my idea further! :D
You should create a basic picture(Paint ftw!) about how you want the custom ui to be if you're going with one"
Basically in the same way? You choose the model for the tower, maybe the sort of tower is decided so let's say in level 5 you get to design your canon tower but you still get to decide in aoe, damage, range, speed and so on.
This would make it more balanced but would still allow them to create them by themselves! :D
0
First create a new variable, an integer array. I will call it "value", set the size of the array to the max number of players.
Create a new trigger, event should be "map initialization". Here you should set up each array for this variable to 300, so that's every player got a number of 300 which they want to get to 0.
Set Value[1] = 300
Set Value[2] = 300
Set Value[3] = 300 etc...
Create a new trigger with the event "Unit - Any Unit Enters a distance of 1.0 from Unit". 1.0 should be changed to the range you want and unit to the beacon. Add an trigger action, this will activate a third trigger.
This trigger will have the event "Periodic Event" with 1 second so that it checks once ever second if the players unit is still there. If it is then "Set Value[Number of player] = Value - 1, then add a If/then else action and check if Value[Number of player] is less or equal to 0. If it is the player has been there for over 5 minutes!
0
It's really great to see you contributing to the community yes! I will look trough theese soon! ^^
0
My favorite console game of all time is Metal Gear Solid 4.
On lans I play everything from Starcraft, Warcraft III, cs, half-life.
0
Ye, pretty awesome map dude! :D
It was really hard though, I thought all towers did too small damage except Ghost
0
You must click the "(" before ability command :)
0
Welcome to SC2mapster! ;D
0
I would like to get a tutorial which allows heroes to have stats like in wc3.
And maybe a tutorial on how to terrain with the water, change the way it runs etc.
0
I just did it to test it out and I didn't save it.
But the trigger looked like this:
Events -
Unit - Unit gains an experience level
Condition -
None
Local Variables -
Stats[1] = 0 (Real Variable)
Action -
Set Stats[1] = Maximum health of triggering unit + 10
Unit - Set maximum health of triggering unit to Stats[1]
This makes the game crash, it looked like what I wrote above!
0
I have a question regarding to set unit property action. When I try to change the units max hp the game crashes, my friend says that I have to give him a ability which gives him more max hp, is that true or can I do it with triggers?
0
I don't see it either!
0
Well I don't think you should decide on a name now, it'll come naturally! :)
0
@varkarrus: Go No it was made by a friend at another forum :)
0
Ye that sounds great! It's good that you develop my idea further! :D
You should create a basic picture(Paint ftw!) about how you want the custom ui to be if you're going with one"
0
Basically in the same way? You choose the model for the tower, maybe the sort of tower is decided so let's say in level 5 you get to design your canon tower but you still get to decide in aoe, damage, range, speed and so on.
This would make it more balanced but would still allow them to create them by themselves! :D
0
Ye now that you mention it, it reminds me of it a bit too! Like a hybrid between hero line and gladiator!
One more suggestion; What if the defenders got to design their towers and barricades in the same way as the intruder does? :)