OK, so I'm working on an income code. I use the "-inc x" command to increase the income by x. But, whenever I type something like "-inc asda", it still displays the message. Is there any way to prevent it? Here's the trigger:
Thanks on advance
Code:
Income Incrementp2max
Events
Player - Player 2 (Blue) types a chat message containing -inc max as An exact match
Conditions
(Player 2 (Blue) Current gold) Greater than or equal to 10
Actions
Set TempInt = ((Player 2 (Blue) Current gold) / 10)
Set Income = (Income + TempInt)
Game - Display to Player Group - Player 2 (Blue) the text: ((You increased your income by + ((String(TempInt)) + .Your current income is:)) + (String(Income)))
Player - Add (0 - (TempInt x 10)) to Player 2 (Blue) Current gold