• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

DotA Commands

Status
Not open for further replies.
Level 12
Joined
Mar 23, 2008
Messages
942
first, u dont have to do it with a combo, just dont use a player types a message containing and not
fitting exactly thing <- bad


for example

  • Dota command1
  • Events
    • Player - A player types a message containing ap
  • Conditions
    • <none> / or sth like elapsed time is smaller or equal to 60 seconds....
  • Actions
    • <your actions here>

And make sure there isn't any combinations where the word can be formed accidentally...
 
Level 2
Joined
Dec 29, 2008
Messages
10
first, u dont have to do it with a combo, just dont use a player types a message containing and not
fitting exactly thing <- bad


for example

  • Dota command1
  • Events
    • Player - A player types a message containing ap
  • Conditions
    • <none> / or sth like elapsed time is smaller or equal to 60 seconds....
  • Actions
    • <your actions here>

How do you get that event? I can't seem to make it "A Player" i can only make it "Player 1 (Red)" and things like that.
 
Level 13
Joined
May 11, 2008
Messages
1,198
well i think he just edits the events saying a player types -apem as a chat message and then he puts in more events like -emap and stuff...

he probably just throws the - in there after the first letter just in case the guy makes a typo. i don't think you'd be able to type ap-em and it work but who knows maybe he added that too.
 
Level 7
Joined
Jul 12, 2008
Messages
295
Well -em sets the handicap of Player 1/Player 7 to lower than 100% and it is activated as soon as the ar/ap/sd/rd or whatever is activated +em. I think they made different trigger for em and if it is combinated with other modes i think it is something like this: First it activates the mode(Ex: ar,ap,rd etc...) Then if it is added -em to the mode it activates another trigger that has this event Time - Every 0.04 secs of game time and the actions that reduce the handicap are set bellow and turn off that trigger for removing the lag
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You just use substrings.
Here is a poor written example.

And will you stop already trying to copy things from DotA? Geez, every second thread here has "oh I want to steal/copy stuff from DotA!!!!!!!", as if it's the best thing that happened in this world.

  • Blablabla
    • Events
      • Player - Player 1 (Red) types a chat message containing - as A substring
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Length of (Entered chat string)) Greater than 3
        • Then - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Substring((Entered chat string), 1, 3)) Equal to bla
            • Then - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Length of (Entered chat string)) Greater than or equal to 6
                • Then - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Substring((Entered chat string), 4, 6)) Equal to lol
                    • Then - Actions
                      • -------- bla and lol activated --------
                    • Else - Actions
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Substring((Entered chat string), 4, 6)) Equal to nub
                    • Then - Actions
                      • -------- bla and nub activated --------
                    • Else - Actions
            • Else - Actions
              • -------- only bla activated --------
        • Else - Actions
 
Level 13
Joined
May 11, 2008
Messages
1,198
oh yeah substrings, i remembered learning about those but haven't used them yet so i forgot about them.

oh and GhostWolf i'm pretty sure ppl would stop asking so many questions about how dota does this and/or that if the map could be opened in world edit.

chances are though that if that happened then it would be hard to get people to play the proper version of the game.
 
Status
Not open for further replies.
Top