HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Disable Aspects of Alliance

08-30-2008, 01:42 AM#1
Zero
For some reason for the life of me I cannot find how to disable aspects of players alliances while in the actual game.

For example: To make it so you can't share unit control/share vision/make enemy or ally by pressing f11 for alliances screen.

But I do want only gold and not lumber to be able to be traded. Don't know if this is possible?

Anyone know how?
08-30-2008, 02:53 AM#2
DioD
Collapse JASS:
function Trig_Untitled_Trigger_001_Actions takes nothing returns nothing
    call SetPlayerAllianceBJ( Player(0), ALLIANCE_SHARED_ADVANCED_CONTROL, true, Player(1) )
endfunction

function SetPlayerAllianceBJ takes player sourcePlayer, alliancetype whichAllianceSetting, boolean value, player otherPlayer returns nothing
    // Prevent players from attempting to ally with themselves.
    if (sourcePlayer == otherPlayer) then
        return
    endif

    call SetPlayerAlliance(sourcePlayer, otherPlayer, whichAllianceSetting, value)
endfunction

    constant alliancetype       ALLIANCE_PASSIVE                = ConvertAllianceType(0)
    constant alliancetype       ALLIANCE_HELP_REQUEST           = ConvertAllianceType(1)
    constant alliancetype       ALLIANCE_HELP_RESPONSE          = ConvertAllianceType(2)
    constant alliancetype       ALLIANCE_SHARED_XP              = ConvertAllianceType(3)
    constant alliancetype       ALLIANCE_SHARED_SPELLS          = ConvertAllianceType(4)
    constant alliancetype       ALLIANCE_SHARED_VISION          = ConvertAllianceType(5)
    constant alliancetype       ALLIANCE_SHARED_CONTROL         = ConvertAllianceType(6)
    constant alliancetype       ALLIANCE_SHARED_ADVANCED_CONTROL= ConvertAllianceType(7)
    constant alliancetype       ALLIANCE_RESCUABLE              = ConvertAllianceType(8)
    constant alliancetype       ALLIANCE_SHARED_VISION_FORCED   = ConvertAllianceType(9)
08-30-2008, 03:37 AM#3
Zero
I can't add any more JASS to my map. It won't work >.>

Can this be done GUI?
08-30-2008, 03:44 AM#4
rulerofiron99
Can't add any more JASS? WTF?
08-30-2008, 03:44 AM#5
DioD
I posted converted gui trigger...
08-30-2008, 04:00 AM#6
Zero
Um.. Can u post non converted? Still can't read JASS that well...

To ruler:
IDK man every time i try to any more JASS code to map it says expected name expected this expected that blah blah blah. It has something to do with enabling Advanced Triggers with WE Unlimited Editor I use >.>
08-30-2008, 05:51 AM#7
Zero
I figured it out ")
08-30-2008, 09:16 AM#8
DioD
Zero
Dont use shitty GUI mods...