• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Tavern And Picking System

This bundle is marked as useful / simple. Simplicity is bliss, low effort and/or may contain minor bugs.
  • Like
Reactions: Spoontoobig
All Made 100% Pure GUI Triggers...

Credits :
Jack-Shepherd [Chat System]
noob_smoke [Life&Mana Bars]

Sry if most text using Non English language..

Have Fun

Keywords:
Picking System
Contents

Picking Hero and Tavern System (Map)

Reviews
12th Dec 2015 IcemanBo: Too long time as NeedsFix. Rejected. 11:47, 17th Jun 2010 TriggerHappy: Remove all the unnecessary systems from the demo map. Remove the delimited comments, otherwise even your GUI version will require JassHelper...

Moderator

M

Moderator

12th Dec 2015
IcemanBo: Too long time as NeedsFix. Rejected.

11:47, 17th Jun 2010
TriggerHappy:

Remove all the unnecessary systems from the demo map.
Remove the delimited comments, otherwise even your GUI version will require JassHelper.
Make your Jass version.. fully jass. Don't use silly custom scripts.
 
Level 31
Joined
May 3, 2008
Messages
3,155
Your whole documentation are not in english, your trigger are messy and the way you make comment are... (speechless).

And what the hell you script JASS in GUI?

  • ReviveHero Jass version
    • Events
    • Conditions
    • Actions
      • Custom script: local location a = GetRectCenter(gg_rct_Picking_Hero)
      • Custom script: local unit b = GetRevivingUnit()
      • Custom script: local location c
      • Custom script: call SetUnitPositionLoc(b,a)
      • Custom script: set c = GetUnitLoc(b)
      • Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(b),c,0)
      • Custom script: call SetUnitLifePercentBJ(b,100)
      • Custom script: call SetUnitManaPercentBJ(b,100)
      • Custom script: call RemoveLocation(a)
      • Custom script: call RemoveLocation(c)
      • Custom script: set a = null
      • Custom script: set b = null
      • Custom script: set c = null
      • Custom script: /*
      • Custom script: "kalo ga ngerti yang diatas pake custom script gt pake yang di ReviveHeroGUIversion aja"
      • Custom script: */
as for your jass, it look like you merely convert it from gui to jass and does nothing to improve it.

JASS:
//TESH.scrollpos=25
//TESH.alwaysfold=0
function Trig_Matchup_Func001002002001 takes nothing returns boolean
    return ( IsUnitType(GetFilterUnit(), UNIT_TYPE_HERO) == true )
endfunction

function Trig_Matchup_Func001002002002 takes nothing returns boolean
    return ( GetPlayerController(GetOwningPlayer(GetFilterUnit())) == MAP_CONTROL_USER )
endfunction

function Trig_Matchup_Func001002002 takes nothing returns boolean
    return GetBooleanAnd( Trig_Matchup_Func001002002001(), Trig_Matchup_Func001002002002() )
endfunction

function Trig_Matchup_Func002Func001C takes nothing returns boolean
    if ( not ( IsPlayerEnemy(GetOwningPlayer(GetEnumUnit()), GetTriggerPlayer()) == true ) ) then
        return false
    endif
    return true
endfunction

function Trig_Matchup_Func002A takes nothing returns nothing
    if ( Trig_Matchup_Func002Func001C() ) then
        call DisplayTextToForce( GetForceOfPlayer(GetTriggerPlayer()), ( ( "|cffFEFFD7" + ( GetPlayerName(GetOwningPlayer(GetEnumUnit())) + "|r" ) ) + ( " memegang hero  " + ( ( "|cff01A2FF" + GetUnitName(GetEnumUnit()) ) + ( " |c004e2a04Telah menginjak Level |r|c007ebff1" + ( I2S(GetHeroLevel(GetEnumUnit())) + "|r" ) ) ) ) ) )
    else
    endif
endfunction

function Trig_Matchup_Actions takes nothing returns nothing
    local group APALU = GetUnitsInRectMatching(GetPlayableMapRect(), Condition(function Trig_Matchup_Func001002002))
    call ForGroupBJ( APALU, function Trig_Matchup_Func002A )
    call TriggerSleepAction( 1.00 )
    call DestroyGroup(APALU)
    set APALU = null
endfunction

//===========================================================================
function InitTrig_Matchup takes nothing returns nothing
    set gg_trg_Matchup = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(1), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(6), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(0), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(2), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(3), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(4), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(5), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(7), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(8), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(9), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(10), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(11), "-ma", false )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(1), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(0), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(6), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(2), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(3), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(4), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(5), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(7), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(8), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(9), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(10), "-matchup", true )
    call TriggerRegisterPlayerChatEvent( gg_trg_Matchup, Player(11), "-matchup", true )
    call TriggerAddAction( gg_trg_Matchup, function Trig_Matchup_Actions )
endfunction
 
Top