Hi, im gonna add a deathmatch system to my map and I want to get some advice. But first, how I want it to work.
There is 2 teams of 5 players from the start. If red types -normal or doesn't type anything in 30 sec of the game, normal 5v5 mode will be enabled. Ive got this part.
Now the DM mode, it's similar (sp?) to Pudge Wars exept it's FFA.
Red types -dm xx or -deathmatch xx, and the DM mode is enabled. The XX is the number of lives win. All players get unallied with eachother and cant ally again.
First question here. If I unally players with eachother, can they ally eachother again in the F11 window? Im using this action.
Second question.
I want to detect what number ''XX'' is, and I have no idea how to do that.
Third question.
What kind of Variable should I use to set the lifes for each player? I'm thinking of using Integer for each player and setting it to XX, and reducing it by 1 each time a hero dies, set Integer -(minus) 1 for that player. Can i use Integer with array of 10?
P.S maybe someone knows an unprotected map with similar system, so i can learn from it ?
I think that was all for now, i will update this thread incase i got some problems.
There is 2 teams of 5 players from the start. If red types -normal or doesn't type anything in 30 sec of the game, normal 5v5 mode will be enabled. Ive got this part.
Now the DM mode, it's similar (sp?) to Pudge Wars exept it's FFA.
Red types -dm xx or -deathmatch xx, and the DM mode is enabled. The XX is the number of lives win. All players get unallied with eachother and cant ally again.
First question here. If I unally players with eachother, can they ally eachother again in the F11 window? Im using this action.
Code:
Deathmatch
Events
Player - Player 1 (Red) types a chat message containing -dm as An exact match
Player - Player 1 (Red) types a chat message containing -deathmatch as An exact match
Conditions
Actions
Player Group - Pick every player in (All players) and do (Actions)
Loop - Actions
Player - Make (Picked player) treat (Picked player) as an Enemy
Second question.
I want to detect what number ''XX'' is, and I have no idea how to do that.
Third question.
What kind of Variable should I use to set the lifes for each player? I'm thinking of using Integer for each player and setting it to XX, and reducing it by 1 each time a hero dies, set Integer -(minus) 1 for that player. Can i use Integer with array of 10?
P.S maybe someone knows an unprotected map with similar system, so i can learn from it ?
I think that was all for now, i will update this thread incase i got some problems.