• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Greedisgood X

Status
Not open for further replies.
Level 16
Joined
Feb 22, 2006
Messages
960
its realy simple, just make:

  • greedisgood
    • Events
      • Player - Player 1 (Red) types a chat message containing greedisgood as a Sub-String
    • Actions
      • Set int = (Integer((Substring((Entered chat string), 13, (Integer((Entered chat string)))))))
      • Player - Add int to Player 1 (Red) actually Gold
      • Player - Add int to Player 1 (Red) actually Wood
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
You should check if the first X letters are your commands, else people would be able to type something like "haha lololol I r so cool _your_command_here_ 10000 hi how are you" and still activate the cheat.

In the example of greedisgood, you'd check that the substring from 0 to 12 (if you want a space) is "greedisgood " (notice the space after the command).
 
Level 4
Joined
Jun 21, 2008
Messages
36
You could Try this:
  • greedisgood
  • Events
    • Player - Player 1 (Red) types a chat message containing greedisgood + Integer A
  • Actions
    • Player - Increase Player 1 (Red) Gold by Integer A
    • Player - Increase Player 1 (Red) Lumber by Integer A
It's not exact but I suck at the trigger things while posting.
 
Status
Not open for further replies.
Top