Phoenixrainn
New Member
- Reaction score
- 2
Hey, I'm trying to create a script that allows you to type an integer in chat and it recognizes any integer.
Player - Player 1 (Red) types a chat message containing ((t + gold ) + ((Name of Player 2 (Blue)) + (String(0)))) as An exact match
What I need to say, is if a player types "t wool (any player color) (integer"
the "t" stands for "trade". Wool is going to be a custom resource just defined by a variable. The event will give any specified resource to another player.
I've looked throughout these forums and others, but I can't seem to find the answer, so I'm finally posting.
Thanks
EDIT
Would it be something like this??
Player - Player 1 (Red) types a chat message containing ((t + (Substring(gold , 7, 8))) + blue) as An exact match
So "t gold (integer) blue"
Player - Player 1 (Red) types a chat message containing ((t + gold ) + ((Name of Player 2 (Blue)) + (String(0)))) as An exact match
What I need to say, is if a player types "t wool (any player color) (integer"
the "t" stands for "trade". Wool is going to be a custom resource just defined by a variable. The event will give any specified resource to another player.
I've looked throughout these forums and others, but I can't seem to find the answer, so I'm finally posting.
Thanks
EDIT
Would it be something like this??
Player - Player 1 (Red) types a chat message containing ((t + (Substring(gold , 7, 8))) + blue) as An exact match
So "t gold (integer) blue"