Trigger help

aT)CrUnK

Member
Joined
Jun 21, 2005
Messages
6
Reaction score
0
Hello, i have recently decided to start a new form of map protection; however, im recently very new to creating triggers ect

Could some 1 please help me?

Heres my idea... i remember custom games with the code to get your hero from the saved game last time (remember that command)

Well i was wondering if it would be possible to create a timer to close the game unless a trigger is stated

similar to -boot (and it drops all players) unless the code
-ThisIsTheCodeToKeepTheGameGoing is said

I know its probably really hard to do; however, i believe most people would like to know how to do this (Even though it will limit who hosts ur map)

Reason why i would like this is so that i can produce maps for tournaments inside clans of which are only allowed to be played by people with the code; thus, preventing "training" on these certain maps
 

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
Yeah that's dooable, use string comparisons for conditions to specify exactly what needs to be said, and
Player-Entered chat string for your Event.
 

x42bn6

Retired Staff
Joined
Nov 11, 2002
Messages
15,150
Reaction score
2
Location
London, United Kingdom
aT)CrUnK said:
Hello, i have recently decided to start a new form of map protection; however, im recently very new to creating triggers ect

Could some 1 please help me?

Heres my idea... i remember custom games with the code to get your hero from the saved game last time (remember that command)

Well i was wondering if it would be possible to create a timer to close the game unless a trigger is stated

similar to -boot (and it drops all players) unless the code
-ThisIsTheCodeToKeepTheGameGoing is said

I know its probably really hard to do; however, i believe most people would like to know how to do this (Even though it will limit who hosts ur map)

Reason why i would like this is so that i can produce maps for tournaments inside clans of which are only allowed to be played by people with the code; thus, preventing "training" on these certain maps
Yeah, that's OK.

Make variables:
MyPlayers - Set the type to Player, array of length 12.
MyPlayersPlaying - Set the type to Boolean, array of length 12.

Event:
Melee Initialization

Action:
Set Variable - Set [MyPlayers[0]] to [Player 1 (Red)]
Set Variable - Set [MyPlayers[1]] to [Player 2 (Blue)]
... Do for each player

-----

Event:
Player enters chat message containing [-ThisIsTheCodeToKeepTheGameGoing] as an exact match

Action:
Set Variable - Set [MyPlayersPlaying[Player Index of [Triggering Player] - 1]] to [True]

-----

Event:
Player enters chat message containing [-boot] as an exact match

Action:
For each Integer A from 0 to 11 Do
If [MyPlayersPlaying[Integer A]=False] Then [Player - Defeat Player - Defeat [MyPlayers[Integer A]] Else [Do nothing]​

*
 

the_playa6916

Member!
Joined
Jul 30, 2004
Messages
54
Reaction score
0
Location
CaNaDa
Website
Visit site
honestly i suggest you make it alot more complicated then that, like make it so yu have to move in a certain region AND type that in, or SOMETHING people wont just easily figure out...
 

NewPosts

New threads

Top