Request : Trigger [Enable Some code / Fog of war]

For fulfilled maps that most likely don't work on the latest patch (1.24 or later).

Moderator: Cheaters

trekker
Newcomer
Posts: 5
Joined: February 20th, 2007, 11:53 am

Request : Trigger [Enable Some code / Fog of war]

Post by trekker »

Request 2 Trigger
1. Disable Fog of war
example
Player - Player1 (Red) types a chat massage containing Hackmap As exact match
.
.
.
Player - Player12 (Red) types a chat massage containing Hackmap As exact match
condition
<<<????
give 1 player can see full map

Action
Visibliity - Disable Fog Of War

what's condition?

2. Enable code same
http://forum.wc3edit.net/viewtopic.php? ... light=dota
code "-gogo"
Dark_Shadow32
Member
Posts: 57
Joined: February 11th, 2007, 8:31 am
Location: Germany

Post by Dark_Shadow32 »

I'm not at my own computer, thats why I couldn't look in the WE. But it isn't so difficult:

You didn't need a condition!
Instead of Disable Fog of War you have tow write:
Visibility - Create Visibility across (Playable Maparea) for (Triggering Player)

TO enable the code, you have to create a second trigger:

Code: Select all

E: Player - Player 1-12 (red) types a chat message containing -gogo As exact match
C: 
A: Trigger - Turn On <name of the trigger>
I think that was everything!

greets Dark_Shadow32
User avatar
Aero
Forum Staff
Posts: 829
Joined: January 28th, 2007, 8:10 pm
Title: JASS Programmer
Location: Canada

Post by Aero »

That way uses up too much space because if you have more than 1 cheat you'll have to use Turn on trigger more than once

I suggest using a boolean array

E:Player X types -gogo as an exact match
C:
A:Set Boolean[Player number of triggering player] = true

For the cheat...

E:Player X types Hackmap as an exact match
C: Boolean[Player number of triggering player] = true
A: Disable fog of war for Triggering player

If you do this, it also prevents you from typing -gogo, the cheat being turned on and then others using it without typing -gogo first.
trekker
Newcomer
Posts: 5
Joined: February 20th, 2007, 11:53 am

Post by trekker »

Boolean[Player number of triggering player] = true
what's position [Player number of triggering player?]

Disable fog of war for Triggering player In Action has only Disable fog of war
When choose it show

Action Text

Disable Fog of war
there be no blank for this code [ for Triggering player ]