Set amount through entered string

Powergoat

New Member
Reaction score
0
I've encountered a problem which a can't solve nor find a answer to through searching this forums, therefore i ask it now.

Like the minigame warlocks or pudgewars, i want to be able to set amount of rounds/points through and entered string by the host(player1) i.e "-10" would be 10 rounds. I guess you set an integer variable through the "a player enters a chat string" event but from there I am stuck...

Thanks in advance
 

AdamGriffith

You can change this now in User CP.
Reaction score
69
Code:
Player Chat Message
    Events
        Player - Player 1 (Red) types a chat message containing - as A substring
    Conditions
        (Substring((Entered chat string), 1, 1)) Equal to -
    Actions
        Set Integer_Variable = (Integer((Substring((Entered chat string), 2, (Length of (Entered chat string))))))

Then you would use the integer to set the lives however you are going to do that.
 
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