How to type chat message and change heroes level

Kelphy

New Member
Reaction score
0
I want to when player enters chat message it will change the heroes level with the integer entered.

Events:
Player - Player 6 (Orange) types a chat message containing "*" as A substring

Conditions:

Actions
Set Level = (Integer((Entered chat string)))
Set EXP = Level
Unit Group - Pick every unit in (Units currently selected by Player 6 (Orange)) and do (Hero - Set (Picked unit) Hero -level to EXP, Hide level-up graphics)

So far I have noticed that script works perfectly if I

"Player - Player 6 (Orange) types a chat message containing 5000 as A substring"

the issue is that I can not figure out how to have it set as

"Player - Player 6 (Orange) types a chat message containing anything as A substring"

Sorry the answer is probably very simple I just have never had much experience in triggers on Warcraft 3 World Editor honestly.
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I believe you could try this.
Trigger:
  • Events
    • "Player - Player 6 (Orange) types a chat message containing <Empty String> as A substring"

Just don't fill anything into the "Value" field, not even spaces or quotation marks.
 
Last edited:
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top