HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Simple 'Cheat' Help!

02-09-2006, 09:58 PM#1
Orc Dork
I can't seem to figure out how to make a simple cheat. I want to inpliment this for my friend who has cancer. He isnt too good at WC3 yet due to tumors in his arms and impared vision so I wanted him to get a little advantage.

The thing I am having trouble with is finding a way that only he can use it. I dont want others to be able to cheat at this map.


ALSO, is there a way to link 4 Building health?.
02-09-2006, 10:21 PM#2
Anitarf
Well, I'm assuming the cheat would be chat-message-activated, so all you need to check is if the player name of the player who typed the chat message (triggering player) is equal to your friend's name (it would be a string comparison).
02-09-2006, 10:41 PM#3
Orc Dork
Do you think I could do something like:

Trigger1:
Cheat
Collapse Events
Player - Player 1 (Red) types a chat message containing (Phrase) as An exact match
Conditions
Collapse Actions
Unit - Add Revive Hero to Summoner 0012 <gen>

Trigger2:
CHeat2
Collapse Events
Unit - A unit Spawns a summoned unit
Collapse Conditions
(Summoned unit) Equal to (Unit)
Collapse Actions
Unit - Move (Summoned unit) instantly to (Center of Battle Arena Center<gen>)

This will be the only summon in the map btw.
02-09-2006, 10:48 PM#4
Murder1833
Gotta have it so a generic player, then have it check if that players name is so-and-so.
02-09-2006, 10:49 PM#5
Orc Dork
Any ideas on how to do that?
02-09-2006, 10:52 PM#6
Immoralis
Trigger:
(Name of (Triggering player)) Equal to Lance-Armstrong

Its a condition btw, string comparison
02-09-2006, 11:09 PM#7
Anitarf
Quote:
Originally Posted by Orc Dork
Any ideas on how to do that?
...
Quote:
Originally Posted by Anitarf
Well, I'm assuming the cheat would be chat-message-activated, so all you need to check is if the player name of the player who typed the chat message (triggering player) is equal to your friend's name (it would be a string comparison).
02-10-2006, 07:11 PM#8
Orc Dork
Thanks, the scary thing is, my friends idol is Lance Armstrong. ;-P