HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

How do I make a BETA trigger

01-01-2005, 09:37 PM#1
The_AwaKening
I want to make a trigger for a beta map that only certain people can host the map. How would I make this trigger?
01-01-2005, 09:47 PM#2
Evil-Tormenter
Quote:
Originally Posted by The_AwaKening
I want to make a trigger for a beta map that only certain people can host the map. How would I make this trigger?

Well, I'm no trigger-master, but this is how I would do it.

I'd have a count-down trigger at the start. It would last, say, 20 seconds, in which all players would be paused. Then, player 1 would have to input a specific code, which you would give out to your Beta hosters so that only they could host. If no correct code was entered by 20 seconds, you'd have a trigger that defeats all the players in the map.

Hope it helps.
01-01-2005, 11:02 PM#3
The_AwaKening
I've seen other ways to do it that make it so you can't even host it unless you are listed, but this isnt a bad idea. Thanks
01-02-2005, 03:20 AM#4
sc_freek
check the players name with a string comparison at the beginning of the game. if the name isn't what it should be, run a trigger that keeps looping forever and it'll crash the game.
01-02-2005, 07:34 PM#5
Vexorian
Easy actually.

Code:
Events:
Map initialization.
actions:
    Initialize game cache - names.w3m
    set AllowedPlayers=last created gamecache
    ----------------
    Game Cache - Store Boolean - Store true in mission names, key : "AccountName1" of AllowedPlayers
    Game Cache - Store Boolean - Store true in mission names, key : "AccountName2" of AllowedPlayers
    Game Cache - Store Boolean - Store true in mission names, key : "AccountName3" of AllowedPlayers

....

    Game Cache - Store Boolean - Store true in mission names, key : "AccountNameN" of AllowedPlayers
    ------------------
    for each integer A from 1 to 12 do
           if Read stored boolean from gamecache  Allowed players , mission names, key  (Name of convert index to player (integer A) equal to false then
                  Game - Defeat : Convert integer to player - Integer A with message "Not allowed to play this game"
            end of if
01-03-2005, 01:37 AM#6
The_AwaKening
Wow guys, thanks for all the help, this forum is da bomb. I have yet another question.
Where do you find most bugs created by blizzard patches. I am having problems with phoenix egg not respawning into phoenix right if it is hit, and phoenix fire constantly burning people the rest of game after they have been hit.
Also, paladins resurrection used to give you control of the units, but now it just resurects them but you can't control them.
I tried changing the game data to original instead of default which fixed some bugs, but not all including the ones I mentioned.
01-03-2005, 09:23 PM#7
Moose-Head_Man
yes i was going to suggest the "never-ending-trigger-loop-of-doom" method but its all good