• 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.

Advanced Gui Help

Status
Not open for further replies.
Level 9
Joined
Aug 27, 2004
Messages
471
For awhile now, i have wanted to make a trackable grid, for command buttons (Im fairly sure its the only trigger that can fire while a player is disabled)

Now i started off my trigger with the basic gui:
Code:
//*******************************************************************************
function SS_Initialize takes nothing returns nothing
call TriggerSleepAction(1.10)
endfunction
//*******************************************************************************
function InitTrig_SS_Test takes nothing returns nothing
local trigger t

set t = CreateTrigger()
set gg_trg_SS_Test = CreateTrigger()
call TriggerAddAction(gg_trg_SS_Test, function SS_Initialize)
endfunction

And now i want to create my trackable array... But im not totaly sure how to aproach it.
So i have:
Code:
Function CT takes string UnittypeEX, integer X, integer Y returns nothing
local UnittypeX
set UnittypeX = ( UnittypeEX + ".mdx")
Call CreateTrackable(UnittypeEX, X, Y)
endfunction
That should make a trackable, but now i dont know where to go to detect it and all that stuff :/. Anyone know this gui function well enough to help me?

(That gui is slightly problematic, it wont run. Heres a better version)
Code:
function CT takes string UnittypeEX, integer X, integer Y returns nothing 
local string UnittypeX 
set UnittypeX = (UnittypeEX+".mdx") 
call CreateTrackable(UnittypeEX, X, Y, 10) 
endfunction

//===========================================================================
function InitTrig_Test2 takes nothing returns nothing
local string UnittypeEX
local real x
local real y
call DisplayTimedTextToForce( bj_FORCE_PLAYER[0], 5.00, "W00t" )
set y = GetLocationY(GetRectCenter(GetPlayableMapRect()))
set x = GetLocationX(GetRectCenter(GetPlayableMapRect()))
set UnittypeEX = "Doodads\\LordaeronSummer\\Terrain\\StoneWall135\\StoneWall135"
    set gg_trg_Test2 = CreateTrigger(  )
    call TriggerRegisterPlayerChatEvent( gg_trg_Test2, Player(0), "-test", false )
endfunction

Still does nothing, and im still lost as to whats next.
 
Status
Not open for further replies.
Top