Modes with text?

kla0005

New Member
Reaction score
3
Hi guys,

Well, i was wondering.

How do they create these mode triggers.. I mean, how do they "see" what modes been written?

If we have these "Secondary" modes:
-ls (lifesteal)
-sg (speedgame)
-uc (Ultimate Creeps)

How to make a trigger that can se these modes, even if i read them like this:
-lssguc
and
-sgucls

or maybe dosent choose all of them?
-lsuc ?

How do they do it?:(
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I think For Loops and Substrings might be used here. Like:

Trigger:
  • For each (Integer A) from 1 to (Length of (Entered chat string)), do (Actions)
    • Loop - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Substring((Entered chat string), (Integer A), ((Integer A) + 1))) Equal to -ls
        • Then - Actions
          • Actions Here
        • Else - Actions
 

Curo

Why am I still playing this game...?
Reaction score
109
Um...you can just check if a string contains a substring, can't you?

Trigger:
  • Player - Player 1 (Red) types a chat message containing ls as A substring
 

jig7c

Stop reading me...-statement
Reaction score
123
that might not work Curo... if i type in -ls and ls, both times, the trigger will run..

it should be like this

events
player 1 types in - as a substring
conditions
actions
for each integer a, from 1 to length of entered substring
do
if entered substring(integer a), (integer a +1) equal em then turn on trigger1
if entered substring(integer a), (integer a +1) equal ap, then turn on trigger2...
 

Curo

Why am I still playing this game...?
Reaction score
109
ORRRRRR

Trigger:
  • Life Steal
    • Events
      • Player - Player 1 (Red) types a chat message containing ls as A substring
    • Conditions
      • (Substring((Entered chat string), 1, 1)) Equal to -
    • Actions
      • do stuff
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top