Income Help

Sinan2

New Member
Reaction score
9
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:
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
Thanks on advance :)
 
F

FViral

Guest
Strange. The event should only fire on "-inc max" and nothing else. Is another trigger maybe triggering this one?
 
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