Special User List

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

Moderator: Cheaters

User avatar
Pertmywert
Newcomer
Posts: 8
Joined: November 2nd, 2008, 7:55 am
Title: Avid Map-Maker
Location: Queensland, Australia

Special User List

Post by Pertmywert »

G'day mates.

I'm in the finishing stage of a map, however, I'd like to create a function to aid beta testers and creators whilst they play the map (give them boots of speed to a hero, xp etc. etc.)
Now, before you respond:

Code: Select all

Greet Testers
    Events
        Player - Player 1 (Red) types a chat message containing -editorbonus as An exact match
    Conditions
    Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Name of (Triggering player)) Equal to (==) [Wanted Name]
there's a slight problem with that script. I have a -name trigger in my map, so that method is able to be 'tricked' into thinking the person is a beta tester or creator.

I thought maybe, if everyone's names were recorded at the start and only those names were recognized, that this would fix this method. However, I have no idea how to go about recording those names.
I thought this would work:

Code: Select all

 Do Multiple ActionsFor each (Integer B) from 1 to 10, do (Actions)
    Loop - Actions
         Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
            Then - Actions
                Set PlayerNames[(Integer B)] = (Name of (Player((Integer B))))
            Else - Actions
But it just crashes. D: I'm not that good at interger's.

Help? kgr8. :)
User avatar
Syre
Forum Staff
Posts: 506
Joined: November 17th, 2008, 3:49 pm

Re: Special User List

Post by Syre »

Ive not tested this..and in no way will i promise that its leakless..so..tell me how it goes..but if im right..it can be done this way..

First..make varibles for each of your beta testers..The name should be set as their name, with type as integer.

Then you need to make two triggers..first one is
Spoiler:

Code: Select all

Untitled Trigger 001
    Events
        Time - Elapsed game time is 1.00 seconds
    Conditions
    Actions
        Player Group - Pick every player in (All players) and do (If ((Name of (Picked player)) Equal to BetaTestersName) then do (Set BetaTestersPlayersName = 1) else do (Do nothing))
This makes it so you set the integer to 1, if the tester is there. You will need to copy the action for every tester you want.

Your second trigger should be something like..
Spoiler:

Code: Select all

Untitled Trigger 002
    Events
        Player - Player 1 (Red) types a chat message containing -beta as An exact match
    Conditions
    Actions
        If (PlayersName Equal to 1) then do (Action) else do (Do nothing)
This is what will give the items to the players..well you will need to do the action yourself since i dont know what you want..

Hopefully this works..sorry if it doesnt..my first time with trigger like this..lol..hell of a guess if it does though..
Image
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Special User List

Post by Arabidnun »

Basically, I was thinking make a Name[Array] Trigger and set each array = a beta tester's name

Now, then after you do that, make a trigger when a player types -beta

do a multi action 1-x testers and do if player name of triggering player = Name[Integer a]

Then do, pick every unit owned by player of type Hero, and give it boots.