• 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.

help with -agi,str,int max command

Status
Not open for further replies.
Level 3
Joined
Mar 1, 2008
Messages
19
which event condition and action would i have to activeate to get a command like -agi max to work -agi max would use up the persons gold to buy agility from the tome shop i saw it in a game it would work grteat wiht my cheap tomes
ty for ur help
 
Level 3
Joined
Jan 9, 2008
Messages
24
I hope you can see what is events and what is action.
I havent given you all the actions, but at least the events needed to trigger the trigger
  • Player - Player 1 (Red) types a chat message containing -agi max as An exact match
  • Player - Player 1 (Red) types a chat message containing -agi as An exact match
If you want to buy a specified amount agi tomes, you can do this
6 because thats where the number should start, and 10 because you probably wont order more than a 5 digit number (0-99999)
  • Player - Player 1 (Red) types a chat message containing -agi as A substring
  • Set Amount = (Integer((Substring((Entered chat string), 6, 10))))
 
Level 3
Joined
Mar 1, 2008
Messages
19
I hope you can see what is events and what is action.
I havent given you all the actions, but at least the events needed to trigger the trigger
  • Player - Player 1 (Red) types a chat message containing -agi max as An exact match
  • Player - Player 1 (Red) types a chat message containing -agi as An exact match
If you want to buy a specified amount agi tomes, you can do this
6 because thats where the number should start, and 10 because you probably wont order more than a 5 digit number (0-99999)
  • Player - Player 1 (Red) types a chat message containing -agi as A substring
  • Set Amount = (Integer((Substring((Entered chat string), 6, 10))))

thnx i got the first part player 1 red types msg. but where is the set amount integer part at? i searched it and it wasnt in actions or anywhere
 
Level 3
Joined
Jan 9, 2008
Messages
24
First you create a variable as integer
then u set that variable to be
conversion from string to integer
the string that should be converted is a substring
the substring is the event response - entered chat string
 
Status
Not open for further replies.
Top