# -Kill command??

#### aki15

##### New Member
Hi guys, i'm posting this to ask u how can i make this:
When Blue player say -Kill 50-150
Kill limit will be that number, and when 1 of 2 teams reach that number it will win...?
Anyone know how to do this ?

#### TomTTT

##### New Member
easy squeesy...
Create a variable, name it something like Goal (Integer). Then, turn this trigger whenever you want it and turn it off whenever you want, and when a player types -kill, then set tmpInt (Integer) to Substring(Entered chat string) 6, (Length of (Entered chat string)) [It's in convert string to integer and vise versa] . Then check if it's less than or higher than 50-150 and if it isn't, set Goal = tmpInteger.

#### aki15

##### New Member
Hmm, I know how to make it but I'm not so sure..
If you have some time can u give me some example trigger?

#### TomTTT

##### New Member
Sure.
Will edit this one finished.

Trigger:
• Kill
• Events
• Player - Player 1 (Red) types a chat message containing -Kill as A substring
• Conditions
• (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Greater than or equal to 50
• (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string)))))) Less than or equal to 150
• Actions
• Set Goal = (Integer((Substring((Entered chat string), 7, (Length of (Entered chat string))))))

There

#### aki15

##### New Member
Thanks it's working !

General chit-chat
Help Users
• No one is chatting at the moment.
• jonas:
Which company do you work for？
• vypur85:
Haha yea they'd compare my country as well...
• vypur85:
Hmm i don't receive any pm? Maybe I'm using my phone. Gonna check it out using my pc later.
• vypur85:
I'm teaching A Levels in a school in Wuhan.
• jonas:
You should see a "private conversations" tab in the chatbox, that's where I sent it to you
+1
• jonas:
Wow
• jonas:
Is the school system in your country similar to Chinese school system? I could never imagine being a teacher in a Chinese school, what's expected of students and teachers is just so different from what I'd be looking for as a teacher
• vypur85:
A Levels is based on the UK syllabus offered internationally. So the syllabus is similar throughout different countries, taught in english.
• vypur85:
I can't speak or write or read much chinese... Too difficult....... Which also makes my life here in china a lil difficult.
• jonas:
Oh, I see. I thought Chinese version of A-levels
• jonas:
I've been using the translate app a lot on my phone. take a photo, translate. take another photo, translate again
• jonas:
it also has voice translation, my colleagues sometimes use that
• jonas:
You came during the 0 covid policy right? How'd you get through quarantine? Did you have some help with the apps and green codes?
• tom_mai78101:
If you have any Chinese you need help with, let me know.
• vypur85:
@jonas Those were the things I did too. Translate app and VPN are always the most important things to have to survive. Lol.
• vypur85:
Yea I came last year. I was quarantined for about 30 days. Fml. The first day of my quarantine was the eve of Chinese new year last year. Fml again... Lol.
• vypur85:
@tom_mai78101 IIRC you're from Taiwan right.
• The Helper:
I thought China had cracked down on having any foreign teachers?
• vypur85:
Yeah I've heard of the news before. My school is still actively hiring foreign teachers. Not sure how things work now.
• The Helper:
yeah it is hard to get reliable information about that kind of stuff
• The Helper:
but you are doing it so it is still doable
• vypur85:
I think it doesn't affect existing foreign teachers. Then again, its still weird that my school is hiring.
• The Helper:
Happy Monday people hope everyone has a fantastic week!
• Ghan:

### Members online

No members online now.