- Joined
- Apr 18, 2013
- Messages
- 57
How the hell would I make this? The game I have posted seriously needs this! The system I have been using has been working with my friends but now that it is posted I can't be lazy any more.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
plz explain what the system does. i have no idea what ur looking for with that type of explanation
y not just make a selection system. basically get the integer of how many ppl are playing. then have each person select the hero they want and increase another integer.
when the 2 integers match spawn the heroes for those players.
also ive never played dota or LoL
y not just make a selection system. basically get the integer of how many ppl are playing. then have each person select the hero they want and increase another integer.
when the 2 integers match spawn the heroes for those players.
also ive never played dota or LoL
the easiest way would be a boolean condition. if its true ppl can get that hero. if someone bans it then set the condition to false. that way it wont let ppl get that hero.
How would I make this go back in forth between players so it would go like p1 picks first then p6 picks then p2 picks etc.
I'm sorry I am REALY new to this. I understand what you mean on the Boolean true false thing, but how would they be banned in the first place?
basically when u make the trigger that gives the hero to the unit u put all the actions in the then block of the ITE. u use the condition in the conditions block. that way if its false it wont let the hero be spawned or moved or whatever.
banning

Events


Player - Player 1 (Red) types a chat message containing -ban as A substring

Conditions

Actions


Set enteredStr = (Entered chat string)


Set tempInt = (Integer((Substring(enteredStr, 6, (Length of enteredStr)))))


Set HeroBanningBoolean[tempInt] = False
hero selection

Events


Player - Player 1 (Red) types a chat message containing -hero as A substring

Conditions

Actions


Set enteredStr = (Entered chat string)


Set tempInt = (Integer((Substring(enteredStr, 7, (Length of enteredStr)))))


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




HeroBanningBoolean[1] Equal to True



Then - Actions




-------- spawn hero for triggering player that has the number above the hero. --------



Else - Actions
Oooooooh ok took me a bit but I see what u did there! Thanks!
tempInt is the integer that the player types in.
to ban u type -ban #
change the # to a number from 1 to however many heroes u have.
Set Assassin = Assassin
Set AssassinInt[2] = (Point-value of Assassin)
Put them in a unit type array. Make numbers with floating text above the unts on the map so a player knows what number to type in. Make those numbers corresponds to the index of the unit type array.
Those numbers will also correspond with the hero banned Boolean
*facepalm* that is way to obvious i feel dumb now lol