Giving X Number of gold

Surferkid993

God surferkid993 = new God(awesome.me);
Reaction score
16
How do I make a trigger where you type in "-Give (integer)" and it uses that integer in the trigger to give a player a certain amount.
 

SFilip

Gone but not forgotten
Reaction score
634
using substrings
Code:
Give
    Events
        Player - Player 1 (Red) types a chat message containing -give  as A substring
    Conditions
    Actions
        Player - Add (Integer((Substring((Entered chat string), 6, (Length of (Entered chat string)))))) to Player 1 (Red) Current gold
though i am not really sure what would happen if you type "-give a" for example...probably wont give anything. :rolleyes:
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top