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

Giving money by (player) text message.

Status
Not open for further replies.
Level 7
Joined
Jul 6, 2008
Messages
314
I couldn't find this, so here goes. Some of you may recognize this from Burb TD

How does someone make it so they can give a player gold through a game message? Such as, someone types -give 50, and it gives their ally 50 gold. Help is appreciated.
 
Level 12
Joined
Mar 16, 2006
Messages
992
I couldn't find this, so here goes. Some of you may recognize this from Burb TD

How does someone make it so they can give a player gold through a game message? Such as, someone types -give 50, and it gives their ally 50 gold. Help is appreciated.

A player types -give
Add [integer following player#] gold to Player#[integer following -give]

Or a simpler version would be to make a trigger for
-give 01 [gold amount]
-give 02
-give 03, etc

Good luck.
 
Level 17
Joined
Nov 26, 2007
Messages
1,964
Event - A player enters -gold as a substring

Conditions -

Actions - If then else multiple actions

If substring entered chatstring 7,9 equal to Red then do

Give Substring entered chat string (Convert String to real) substring 11,14 gold to player 1 red.

Else do

If then else multiple actions

If entered chatstring 7,10 equal to blue then do....


The triggers might not be word for word, I said this from the top of my head. Just do this for every player and remember to change the numbers for each substring. So with this it'll give red gold if you say

-give red 50 for example. Do that for every player
 
Level 4
Joined
Aug 7, 2008
Messages
115
Or make a trigger thyat each player types -gold and the Owner of Player Typed recieves 50 gold

Event:
-Player - types a chat containing -gold as an exact match
Conditions:
Actions:
-Player - add 50 gold to [owner of...] or [player 1(red),blue and others] in their current gold

Sth like that
 
Status
Not open for further replies.
Top