Jass Code

Discussion in '2002-2004 Archives' started by genki-dama, Mar 23, 2004.

  1. genki-dama

    genki-dama Member!

    Joined:
    May 23, 2003
    Messages:
    183
    Likes received:
    0
    Trophy points:
    0
    Thought maybe i would post alittle jass stuff every now and then in case anyone wanna learn.. this is to display a message to all players after a certain amount game time has elapsed..
    Note: In jass a space is equal to a " _ " <-- underscore!


    function Trig_name of trigger_Actions takes nothing returns nothing
    call DisplayTextToForce( GetPlayersAll(), "YOUR TEXT" )
    endfunction
    function InitTrig_name of trigger takes nothing returns nothing
    set gg_trg_name of trigger = CreateTrigger( )
    call TriggerRegisterTimerEventSingle( gg_trg_name of trigger, seconds )
    call TriggerAddAction( gg_trg_name of trigger , function Trig_name of trigger_Actions )
    endfunction
     
  2. [e]MOTION

    [e]MOTION Member!

    Joined:
    Jan 26, 2004
    Messages:
    74
    Likes received:
    0
    Trophy points:
    0
    do you know of anyway of turning a jass trigger into a normal GUI trigger/WE trigger??? i am pretty sure there has to be a way..

    like opening a map in winMPQ and extracting all the trigs and importing them into another..??? which is a hard task when the map is protected...

    i just cant figure it out.. and have been trying for about 4 months off and on.
     
  3. UltimateJim-Returns!

    UltimateJim-Returns! Member!

    Joined:
    Mar 28, 2004
    Messages:
    53
    Likes received:
    0
    Trophy points:
    0
    its impossible, since the triggers are basically in JASS, but the WE remembers the GUI
     
  4. [e]MOTION

    [e]MOTION Member!

    Joined:
    Jan 26, 2004
    Messages:
    74
    Likes received:
    0
    Trophy points:
    0
    well, when you think about it. the game is reading the triggers as jass, or converting while in gameplay or while the map is closed. there should be another way to reverse that or get a reverse action.