[Log in / Register]
| News | Chat | Pastebin | Donations | Tutorials | Rules | Forums |
| Maps | Skins | Icons | Models | Spells | Tools | Jass | Packs | Hosted Projects | Starcraft II Modding | Starcraft II Resources | Galaxy Wiki |
(Keeps Hive Alive)
Go Back   The Hive Workshop > Warcraft III Modding > Triggers & Scripts


Triggers & Scripts In this forum you may ask for help on fixing a trigger or script. But if you need help getting started with a trigger, this is not the right place — use the World Editor Help Zone.

Closed Thread
 
Thread Tools
Old 10-22-2007, 09:46 PM   #1 (permalink)
Registered User mammoth28
Orcan Mafia
 
mammoth28's Avatar
 
Join Date: Sep 2007
Posts: 23
mammoth28 is an unknown quantity at this point (0)
Is there a GUI Host Check?

As usual, I try to do my research first before asking these questions. And by the way the search engine for this site is not so good, maybe some of you can write a jass web search engine...Lol. It pulls up pages of crap thats not even related. (It seems its a word based search rather than whole phrases or combo words like "Host Check").

Anyways, I searched for a way to switch the host to another player, if the host dies or is disconnected. What I did find was all Jass stuff, in which I'm just starting to look at Jass. I tried to accomplish what I thought they were doing thru triggers, but no results.

I figured I would ask if anyone has a Host check Trigger using varibles thats GUI already made before I spend to much more time on this. If not, then I will post what I have so far, and maybe you kind people might help me figure it out. Your help is greatly appriciated.
mammoth28 is offline  
Old 10-23-2007, 09:13 AM   #2 (permalink)
Registered User edge[d1]
That User
 
edge[d1]'s Avatar
 
Join Date: Mar 2006
Posts: 311
edge[d1] has little to show at this moment (25)edge[d1] has little to show at this moment (25)edge[d1] has little to show at this moment (25)
gui offers no such things. but you can find out who the game host is (see here) and put that into a gui variable HostPlayer (which you created) with this custom script line set udg_HostPlayer = GetHost(). then you can use that variable to ask the host about game options...

on a side note, the function does not always return the guy who created the game (never returned me ) - it quite often returns the guy with the fastest machine. it is because of blizzards server-switching technology... hence - gethost function is imperfect but we don't have a better one. if it is not good enough for you, go with the first human player from the top...
edge[d1] is offline  
Old 10-23-2007, 10:10 AM   #3 (permalink)
Registered User ragingspeedhorn
Unpopular by popular vote
 
ragingspeedhorn's Avatar
 
Join Date: Apr 2005
Posts: 6,536
ragingspeedhorn is a splendid one to behold (947)ragingspeedhorn is a splendid one to behold (947)ragingspeedhorn is a splendid one to behold (947)ragingspeedhorn is a splendid one to behold (947)
PayPal Donor: This user has donated to The Hive. Former Staff Member: This user used to be on the Hive Workshop staff. Paired Mapping Contest #4 - Winner: Fallen Angel - Lucifer's Keep Paired Mapping Contest #3 - Winner: Warcraft Arena Paired Mapping Contest #2 - Winner: Hell Scream's Party Cinematic Mini-Contest #1 - Winner: The Escape & The Premonition Mini-Game Contest #1 - Winner: Pirate Tag! 
gethost is very exact, but not 100% yes. You have to have a really shitty computer/connection or be running a ton of shit when in Wc3 not to be recognised as the host :)

..Or some other person to be extremely superior.

And the tutorial is pretty straightforward, mammoth28, it should be easy to follow and then if the host leaves assign his previlidges to some other player.
ragingspeedhorn is offline  
Closed Thread

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't host kkots WarCraft Discussion 15 03-17-2008 05:51 PM
I cant host , why ? (please help) Textor Computer Tech 45 05-24-2007 10:29 AM
How to make the game check who is the host ragingspeedhorn General Mapping Tutorials 0 06-11-2006 01:14 AM
Host Got_LOAP? Map Development 3 06-02-2005 10:07 PM
CAN'T HOST !!!! Unscrewed_Magic Site Discussion 4 01-02-1970 01:28 AM

All times are GMT. The time now is 01:47 PM.





Powered by vBulletin
Copyright 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.5.1 PL2
Copyright © Ralle