wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 12-29-2006, 10:26 PM   #1
Oblivion9
User
 
Oblivion9's Avatar
 
Join Date: Aug 2004
Posts: 59

Oblivion9 has little to show at this moment (2)

Default Disabling Shared Units

I was wondering if there was some sort of short cut or quick fix to prevent shared control of units with other players (basically making that box in the f11 disabled). This might be a simple question, but I couldn't find anything on it in these forums (although I might have not used the right keyword).
Oblivion9 is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 12-30-2006, 02:38 AM   #2
Hydrolisk
User
 
Join Date: Mar 2006
Posts: 321

Submissions (1)

Hydrolisk is on a distinguished road (11)

Default

You could make a map initialization trigger that says something like:
Trigger:
Event: Map Initilization
Condition:
Action:Turn OFF shared units for ALL PLAYERS.
I don't know if that would work, as I can't check in the WE.
BTW, can someone teach me how to properly do trigger tags?

Last edited by Hydrolisk : 12-30-2006 at 02:39 AM.
Hydrolisk is offline   Reply With Quote
Old 12-30-2006, 09:48 PM   #3
Pyrogasm
Lackadaisically Absent.
 
Pyrogasm's Avatar


Respected User
 
Join Date: Sep 2006
Posts: 4,523

Submissions (9)

Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)Pyrogasm is a splendid one to behold (638)

Hero Contest - Fourth place

Send a message via ICQ to Pyrogasm Send a message via AIM to Pyrogasm Send a message via MSN to Pyrogasm Send a message via Yahoo to Pyrogasm
Default

I should probably PM you this, but here's how to use the tags:

When entering things, you use a group of 4 spaces ( ) to make extensions on things (that might not be the right word). The "Events, Condtitions, and Actions" all go in the same colum (no spaces before them) like this:

[trigger]
Events
Conditions
Actions
[/trigger]

Which looks like this:
Trigger:
Events
Conditions
Actions

If you want to make an event under the "events" section (or new action, or condition), start a new line, and indent (in groups of 4 spaces) to the next indent past the line that you want the new line to come from.

This: (The { } is just to show the spaces)
[trigger]
Events
{ }Unit - A unit enters Region <gen>
Conditions
{ }((Triggering Unit) is alive) equal to true
Actions
{ }Unit - Kill (Triggering Unit)
[/trigger]

Looks like this:
Trigger:
Collapse Events
Unit - A unit enters Region <gen>
Collapse Conditions
((Triggering Unit) is alive) equal to true
Collapse Actions
Unit - Kill (Triggering Unit)
Just make sure you always add things like "Unit - A unit dies", not just "A unit dies" in order to get the right icon.

If you just click on a trigger in WE and select "copy as text" and then paste it in a post, you should see how the formatting works. And here's an informative post.
__________________
Quote:
Originally posted by Rising_Dusk
Your spells are mostly ignored because they are not very cool so we aren't very excited to review/approve them, but you are incredibly persistent and won't give us an excuse to graveyard it. That is generally what results in a resource being ignored for a long time.

The Spell Request Thread Done for, unless someone else wants to revive it...
It lasted a damn long time.

Please; Ask for Help Appropriately














Quote:
Originally posted by Kyrbi0
Huh. Almost makes me wish I had a girlfriend, to take advantage of today (wait, no, that's not what I meant... I mean, take advantage of the fact that it is international women's day... gah, never mind).
Quote:
Originally posted by Pyrogasm
Rome may not have been built in a day, but the Romans sure as hell didn't say "look at this great city we built guys!" when they had nothing more than a bit of stone and some cottages.
Pyrogasm is offline   Reply With Quote
Old 12-31-2006, 08:45 AM   #4
Oblivion9
User
 
Oblivion9's Avatar
 
Join Date: Aug 2004
Posts: 59

Oblivion9 has little to show at this moment (2)

Default

Quote:
Originally Posted by Hydrolisk
You could make a map initialization trigger that says something like:
Trigger:
Collapse Events
Map Initilization
Conditions
Collapse Actions
Turn OFF shared units for ALL PLAYERS.
I don't know if that would work, as I can't check in the WE...
Where exactly would this "Turn OFF shared units for ALL PLAYERS" be? I just went thru them again and I didn't see a thing! The closest thing I found was "GAME - Share Vision and Full Unit Control With Team", but no way to turn it off! Maybe it's a jass script? Anyone?
Oblivion9 is offline   Reply With Quote
Old 12-31-2006, 08:56 AM   #5
zeroXD
User
 
Join Date: Aug 2006
Posts: 256

Submissions (1)

zeroXD is on a distinguished road (16)

Default

I cant find any GUI/JASS to do it, but I think changing options in "Cenario => Force Properties..." and do Lock Player Settings (think it was called that). It is pretty limited, though.
zeroXD is offline   Reply With Quote
Old 01-12-2007, 07:21 AM   #6
Oblivion9
User
 
Oblivion9's Avatar
 
Join Date: Aug 2004
Posts: 59

Oblivion9 has little to show at this moment (2)

Default


Are you suggesting the "Fixed Player Settings" box under Scenario? Cos, that doesn't disallow players from sharing control... Unless of course you uncheck Share Vision, which I want to share vision......................

Eh, I'll keep playing with it, unless someone has a solution.
Oblivion9 is offline   Reply With Quote
Old 01-27-2007, 12:17 AM   #7
Oblivion9
User
 
Oblivion9's Avatar
 
Join Date: Aug 2004
Posts: 59

Oblivion9 has little to show at this moment (2)

Default

I apologizing for bumping this, but I have to ask... is this an ubernoob question or is it so difficult that no one knows.
Oblivion9 is offline   Reply With Quote
Old 01-27-2007, 01:12 AM   #8
shadow1500
STARCRAFT II OMFG
 
shadow1500's Avatar
 
Join Date: Jul 2004
Posts: 1,004

Submissions (9)

shadow1500 is just really nice (306)shadow1500 is just really nice (306)shadow1500 is just really nice (306)

Send a message via ICQ to shadow1500 Send a message via AIM to shadow1500 Send a message via MSN to shadow1500
Default

Check if that works:
Collapse JASS:
function Trig_NoSharedControl_Actions takes nothing returns nothing
    // Check if the player shared control with anyone, if so, unshare.
    local integer x = 0
    loop
        exitwhen x>11
        if GetPlayerAlliance(GetTriggerPlayer(),Player(x),ALLIANCE_SHARED_CONTROL) then
            call SetPlayerAlliance(GetTriggerPlayer(),Player(x),ALLIANCE_SHARED_CONTROL,false)
        endif
        if GetPlayerAlliance(GetTriggerPlayer(),Player(x),ALLIANCE_SHARED_ADVANCED_CONTROL) then
            call SetPlayerAlliance(GetTriggerPlayer(),Player(x),ALLIANCE_SHARED_ADVANCED_CONTROL,false)
        endif
        set x = x + 1
    endloop
endfunction
function InitTrig_NoSharedControl takes nothing returns nothing
    local integer x = 0
    set gg_trg_NoSharedControl = CreateTrigger()
    loop
        exitwhen x>11
        call TriggerRegisterPlayerEvent(gg_trg_NoSharedControl,Player(x),EVENT_PLAYER_ALLIANCE_CHANGED)
        set x = x + 1
    endloop
    call TriggerAddAction(gg_trg_NoSharedControl, function Trig_NoSharedControl_Actions)
endfunction
Create trigger with name "NoSharedControl", convert to custom text, paste that in.

Last edited by shadow1500 : 01-27-2007 at 01:13 AM.
shadow1500 is offline   Reply With Quote
Old 01-27-2007, 01:39 AM   #9
Oblivion9
User
 
Oblivion9's Avatar
 
Join Date: Aug 2004
Posts: 59

Oblivion9 has little to show at this moment (2)

Default

I will try that... Thank you!!!
Oblivion9 is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 09:17 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services