HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

About "missionKey" in the GetHost function

12-07-2007, 09:15 PM#1
Sunwarrior25
Ok, I'm trying to use the GetHost function in one of my maps, but don't know what to replace "missionKey" and "Key" with. I would appreciate any explanations and/or examples on this matter. Thank you for your time.
12-07-2007, 09:29 PM#2
Vexorian
Just forget about it, Getting host does not have a robust method.
12-07-2007, 10:00 PM#3
Sunwarrior25
Ok, I'll just assign "host" to a random player in the player group I am using, as the computer that I edit/test my maps on has no internet.

Edit (New question):
I have come across a new problem unrelated to GetHost, and am posting here to save space... I am trying to use a function in two triggers, but the function isn't recognizing some of my variables. I get 8 error messages when I try to save. Here is the problematic trigger:
Collapse JASS:
function TallyVotes takes nothing returns nothing
    //If CinemVote[0] == CinemVote[1] then
        //set VoteCount = 0
        //set CinemVote[0] = 0
        //set CinemVote[1] = 0
        call TriggerSleepAction( 2 )
        call DisplayTextToForce( udg_HeroParty, "The vote was tied. Please re-vote." )
        call PolledWait( 2 )
        call ForForce( udg_HeroParty, DialogDisplayBJ( true, udg_CinemDialog, GetEnumPlayer() ) )
        //call EnableTrigger( gg_trg_YesDialog )     (void)
        call EnableTrigger( gg_trg_NoDialog )
    //Elseif CinemVote[0] > CinemVote[1] then     (void)
        call ConditionalTriggerExecute( gg_trg_Cinematic )
    //Elseif CinemVote[0] < CinemVote[1] then     (void)
        call ConditionalTriggerExecute( gg_trg_NoCinematic )
    //endif                                       (void)
endfunction
The commented lines are the ones giving me problems. (There are no comments in the actual function) Please point out anything that I have done wrong.
12-08-2007, 09:44 PM#4
Pyrogasm
Don't capitalize "if" and "elseif".
And I think you forgot the udg_ prefix for some of your variable references.