• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

JASS requests

Status
Not open for further replies.
Level 15
Joined
Oct 29, 2012
Messages
1,474
Hi ? Can Anyone give me the full list of GUI functions in JASS . rep
And Can someone convert this into GUI . +Credits and +Rep
JASS:
function Trig_Initialization_Func023Func001Func001Func002C takes nothing returns boolean
    if ( ( GetEnumPlayer() == Player(9) ) ) then
        return true
    endif
    if ( ( GetEnumPlayer() == Player(10) ) ) then
        return true
    endif
    if ( ( GetEnumPlayer() == Player(bj_PLAYER_NEUTRAL_VICTIM) ) ) then
        return true
    endif
    if ( ( GetEnumPlayer() == Player(PLAYER_NEUTRAL_AGGRESSIVE) ) ) then
        return true
    endif
    return false
endfunction

function Trig_Initialization_Func023Func001Func001C takes nothing returns boolean
    if ( not Trig_Initialization_Func023Func001Func001Func002C() ) then
        return false
    endif
    return true
endfunction

function Trig_Initialization_Func023Func001C takes nothing returns boolean
    if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
        return false
    endif
    return true
endfunction

function Trig_Initialization_Func023A takes nothing returns nothing
    if ( Trig_Initialization_Func023Func001C() ) then
        if ( Trig_Initialization_Func023Func001Func001C() ) then
        else
            call ForceAddPlayerSimple( GetEnumPlayer(), udg_Farmers )
        endif
    else
    endif
endfunction

function Trig_Initialization_Func024Func001C takes nothing returns boolean
    if ( not ( GetPlayerSlotState(GetEnumPlayer()) == PLAYER_SLOT_STATE_PLAYING ) ) then
        return false
    endif
    return true
endfunction

function Trig_Initialization_Func024A takes nothing returns nothing
    if ( Trig_Initialization_Func024Func001C() ) then
        call ForceAddPlayerSimple( GetEnumPlayer(), udg_Hunters )
    else
    endif
endfunction

function Trig_Initialization_Func025C takes nothing returns boolean
    if ( not ( CountPlayersInForceBJ(udg_Farmers) < 4 ) ) then
        return false
    endif
    return true
endfunction

function Trig_Initialization_Func033A takes nothing returns nothing
    call SetPlayerTechMaxAllowedSwap( 'h001', 12, GetEnumPlayer() )
    call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_VICTIM), bj_ALLIANCE_ALLIED_ADVUNITS )
    call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), bj_ALLIANCE_ALLIED_ADVUNITS )
    call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), GetEnumPlayer(), bj_ALLIANCE_ALLIED )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, GetEnumPlayer() )
    // Farmers
    call SetPlayerAbilityAvailableBJ( false, 'A00U', GetEnumPlayer() )
    call SetPlayerAbilityAvailableBJ( false, 'Agyv', GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'n00I', false, GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'nvlk', false, GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'nvk2', false, GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'nvlw', false, GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'h00I', false, GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'h00J', false, GetEnumPlayer() )
    call SetPlayerTechMaxAllowedSwap( 'h003', 1, GetEnumPlayer() )
    call SetPlayerTechMaxAllowedSwap( 'hatw', 1, GetEnumPlayer() )
    call SetPlayerStateBJ( GetEnumPlayer(), PLAYER_STATE_RESOURCE_GOLD, 80 )
    call SetPlayerTechMaxAllowedSwap( 'R001', 0, GetEnumPlayer() )
    call SetPlayerTechMaxAllowedSwap( 'R002', 0, GetEnumPlayer() )
    call SetPlayerTechMaxAllowedSwap( 'R003', 0, GetEnumPlayer() )
    set udg_GolemAttSpeedTech[GetConvertedPlayerId(GetEnumPlayer())] = 100.00
    set udg_GolemDamageTech[GetConvertedPlayerId(GetEnumPlayer())] = 100.00
    set udg_GolemHPTech[GetConvertedPlayerId(GetEnumPlayer())] = 100.00
    call ConditionalTriggerExecute( gg_trg_LocaSets )
    call CreateNUnitsAtLoc( 1, 'hpea', GetEnumPlayer(), udg_StartLoc[udg_TempInteger], GetRandomDirectionDeg() )
    call PanCameraToTimedLocForPlayer( GetEnumPlayer(), udg_StartLoc[udg_TempInteger], 0.00 )
    set udg_Hero[GetConvertedPlayerId(GetEnumPlayer())] = GetLastCreatedUnit()
    call GroupAddUnitSimple( GetLastCreatedUnit(), udg_FarmerHeroes )
    call SetUnitUserData( GetLastCreatedUnit(), GetConvertedPlayerId(GetOwningPlayer(GetLastCreatedUnit())) )
    call TriggerRegisterUnitEvent( gg_trg_Construction, udg_Hero[GetConvertedPlayerId(GetEnumPlayer())], EVENT_UNIT_ISSUED_POINT_ORDER )
endfunction

function Trig_Initialization_Func040A takes nothing returns nothing
    call SetPlayerAllianceStateBJ( GetEnumPlayer(), Player(bj_PLAYER_NEUTRAL_VICTIM), bj_ALLIANCE_UNALLIED )
    call SetPlayerAllianceStateBJ( Player(bj_PLAYER_NEUTRAL_VICTIM), GetEnumPlayer(), bj_ALLIANCE_UNALLIED )
    // Hunters
    call SetPlayerAbilityAvailableBJ( false, 'Aspb', GetEnumPlayer() )
    call SetPlayerAbilityAvailableBJ( false, 'Aliq', GetEnumPlayer() )
    call SetPlayerAbilityAvailableBJ( false, 'A009', GetEnumPlayer() )
    call SetPlayerAbilityAvailableBJ( false, 'A00O', GetEnumPlayer() )
    call SetPlayerUnitAvailableBJ( 'o005', false, GetEnumPlayer() )
    call CreateNUnitsAtLoc( 1, 'Obla', GetEnumPlayer(), GetPlayerStartLocationLoc(GetEnumPlayer()), GetRandomDirectionDeg() )
    set udg_Hero[GetConvertedPlayerId(GetEnumPlayer())] = GetLastCreatedUnit()
    call UnitAddAbilityBJ( 'A001', GetLastCreatedUnit() )
    call GroupAddUnitSimple( GetLastCreatedUnit(), udg_HunterHeroes )
    call SetUnitUserData( GetLastCreatedUnit(), GetConvertedPlayerId(GetOwningPlayer(GetLastCreatedUnit())) )
    set udg_MercAttackPoint[GetConvertedPlayerId(GetEnumPlayer())] = GetUnitLoc(GetLastCreatedUnit())
    call TriggerRegisterUnitEvent( gg_trg_HunterDeath, udg_Hero[GetConvertedPlayerId(GetEnumPlayer())], EVENT_UNIT_DEATH )
    call TriggerRegisterUnitEvent( gg_trg_DontAttackBros, udg_Hero[GetConvertedPlayerId(GetEnumPlayer())], EVENT_UNIT_ATTACKED )
    call ShowUnitHide( GetLastCreatedUnit() )
endfunction

function Trig_Initialization_Actions takes nothing returns nothing
    call FogEnableOn(  )
    call ClearTextMessagesBJ( GetPlayersAll() )
    set udg_StompDamage = 60.00
    // damage pre Stomp spell
    call SetCreepCampFilterState( false )
    set udg_WallRegion = gg_rct_WallRegionReal
    set udg_WallRegionBig = gg_rct_WallRegionGolem
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_037", "TRIGSTR_038", "ReplaceableTextures\\CommandButtons\\BTNUpgradeRegenerationAura.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_OPT_DISCOVERED, "TRIGSTR_039", "TRIGSTR_040", "ReplaceableTextures\\CommandButtons\\BTNShadowMeld.blp" )
    call CreateQuestBJ( bj_QUESTTYPE_REQ_DISCOVERED, "TRIGSTR_041", "TRIGSTR_042", "ReplaceableTextures\\WorldEditUI\\Editor-MultipleUnits.blp" )
    set udg_PlayerColor[1] = "|c00FF0303"
    set udg_PlayerColor[2] = "|c000042FF"
    set udg_PlayerColor[3] = "|c001CE6B9"
    set udg_PlayerColor[4] = "|c00540081"
    set udg_PlayerColor[5] = "|c00FFFC01"
    set udg_PlayerColor[6] = "|c00fEBA0E"
    set udg_PlayerColor[7] = "|c0020C000"
    set udg_PlayerColor[8] = "|c00E55BB0"
    set udg_PlayerColor[9] = "|c00959697"
    set udg_PlayerColor[10] = "|c007EBFF1"
    set udg_PlayerColor[11] = "|c00106246"
    set udg_PlayerColor[12] = "|c004E2A04"
    call ForForce( GetPlayersAllies(Player(0)), function Trig_Initialization_Func023A )
    call ForForce( GetPlayersAllies(Player(7)), function Trig_Initialization_Func024A )
    if ( Trig_Initialization_Func025C() ) then
        set udg_AnimalsMaximum = 300
    else
        set udg_AnimalsMaximum = 200
    endif
    call StartTimerBJ( udg_StartgameTimer, false, 15.00 )
    call CreateTimerDialogBJ( udg_StartgameTimer, "TRIGSTR_045" )
    set udg_StartgameTimerWindow = GetLastCreatedTimerDialogBJ()
    call StartTimerBJ( udg_IncomeTimmer, true, 7.50 )
    call StartTimerBJ( udg_VisibilityTimer, true, 2.50 )
    call StartTimerBJ( udg_PeriodicEventTimer, true, 0.02 )
    set bj_forLoopAIndex = 1
    set bj_forLoopAIndexEnd = 7
    loop
        exitwhen bj_forLoopAIndex > bj_forLoopAIndexEnd
        set udg_StartLoc[GetForLoopIndexA()] = Location(0, 0)
        set bj_forLoopAIndex = bj_forLoopAIndex + 1
    endloop
    call ForForce( udg_Farmers, function Trig_Initialization_Func033A )
    call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(9), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(10), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(PLAYER_NEUTRAL_AGGRESSIVE), Player(0), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(0), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(9), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED )
    call SetPlayerAllianceStateBJ( Player(10), Player(PLAYER_NEUTRAL_AGGRESSIVE), bj_ALLIANCE_ALLIED )
    call ForForce( udg_Hunters, function Trig_Initialization_Func040A )
    call SetPlayerAllianceStateBJ( Player(9), Player(bj_PLAYER_NEUTRAL_VICTIM), bj_ALLIANCE_ALLIED_UNITS )
    call SetPlayerAllianceStateBJ( Player(10), Player(bj_PLAYER_NEUTRAL_VICTIM), bj_ALLIANCE_ALLIED_UNITS )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(bj_PLAYER_NEUTRAL_VICTIM) )
    call ConditionalTriggerExecute( gg_trg_UpdateMultiboard )
    call ConditionalTriggerExecute( gg_trg_InitializeRegions )
    call SetTimeOfDay( 12 )
    call UseTimeOfDayBJ( false )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(0) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(1) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(2) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(3) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(4) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(5) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(6) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(7) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(8) )
    call SetPlayerFlagBJ( PLAYER_STATE_GIVES_BOUNTY, true, Player(11) )
    call GetHost()
    call DisplayTextToForce( GetPlayersAll(), ( "Host rights has been assigned to " + ( udg_PlayerColor[GetConvertedPlayerId(udg_Host)] + ( GetPlayerName(udg_Host) + "|r" ) ) ) )
    call TriggerRegisterPlayerChatEvent( gg_trg_KickCommand, udg_Host, "-kick ", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Progame, udg_Host, "-progame", true )
    // Zvysne srandicky
    set udg_PoolOLife = gg_unit_nfoh_0001
    set udg_PoolOMana = gg_unit_nmoo_0102
    call SetUnitPathing( gg_unit_edot_0008, false )
    call UnitAddAbilityBJ( 'Amrf', gg_unit_edot_0008 )
    call SetUnitFlyHeightBJ( gg_unit_edot_0008, 212.00, 0.00 )
    call UnitRemoveAbilityBJ( 'Amrf', gg_unit_edot_0008 )
    set udg_TempPoint = GetDestructableLoc(gg_dest_GTsh_4100)
    set udg_TempPoint1 = PolarProjectionBJ(udg_TempPoint, 25.00, 11.00)
    call SetUnitPositionLoc( gg_unit_edot_0008, udg_TempPoint1 )
    set udg_TempPoint2 = GetRandomLocInRect(GetPlayableMapRect())
    call SetUnitPositionLoc( gg_unit_nzep_0048, udg_TempPoint2 )
    set udg_ZeppPoint = GetRandomLocInRect(GetPlayableMapRect())
    call IssuePointOrderLocBJ( gg_unit_nzep_0048, "move", udg_ZeppPoint )
    set udg_TempPoint4 = GetUnitLoc(gg_unit_obar_0010)
    set udg_TempPoint3 = OffsetLocation(udg_TempPoint4, -80.00, 0)
    call CreateTextTagLocBJ( "TRIGSTR_1226", udg_TempPoint3, 0, 20.00, 100, 0.00, 0.00, 0 )
    call ShowTextTagForceBJ( true, GetLastCreatedTextTag(), udg_Farmers )
    call ShowTextTagForceBJ( false, GetLastCreatedTextTag(), udg_Hunters )
    call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
    call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 15.00 )
    call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 1.00 )
    call CreateFogModifierRadiusLocBJ( true, Player(7), FOG_OF_WAR_VISIBLE, udg_TempPoint4, 1024.00 )
    call FogModifierStart( GetLastCreatedFogModifier() )
    set udg_StartVision[8] = GetLastCreatedFogModifier()
    call CreateFogModifierRadiusLocBJ( true, Player(8), FOG_OF_WAR_VISIBLE, udg_TempPoint4, 1024.00 )
    call FogModifierStart( GetLastCreatedFogModifier() )
    set udg_StartVision[9] = GetLastCreatedFogModifier()
    call CreateFogModifierRadiusLocBJ( true, Player(11), FOG_OF_WAR_VISIBLE, udg_TempPoint4, 1024.00 )
    call FogModifierStart( GetLastCreatedFogModifier() )
    set udg_StartVision[12] = GetLastCreatedFogModifier()
    call RemoveLocation (udg_TempPoint)
    call RemoveLocation (udg_TempPoint1)
    call RemoveLocation (udg_TempPoint2)
    call RemoveLocation (udg_TempPoint3)
    call RemoveLocation (udg_TempPoint4)
endfunction

//===========================================================================
function InitTrig_Initialization takes nothing returns nothing
    set gg_trg_Initialization = CreateTrigger(  )
    call TriggerAddAction( gg_trg_Initialization, function Trig_Initialization_Actions )
endfunction
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
use JNGP.

It has all of them in the TESH function list.

Yes I saw them but I don't know what they are, I just want like this
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Number of players in Farmers) Greater than 4
    • Then - Actions
    • Else - Actions
becomes
JASS:
function Trig_Initialization_Func025C takes nothing returns boolean
    if ( not ( CountPlayersInForceBJ(udg_Farmers) < 4 ) ) then
        return false
    endif
    return true
endfunction

Isn't there any list like this for actions and conditions of GUI turned into JASS?
And Can you tell me what this means?!
JASS:
if ( ( GetEnumPlayer() == Player(9) ) ) then
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
Last edited:
Status
Not open for further replies.
Top