Text vs Events,conditions & actions

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

Flexi
Member
Posts: 83
Joined: May 6th, 2008, 10:29 am

Text vs Events,conditions & actions

Post by Flexi »

What is the difference of the trigger of a trigger in text and another trigger in events, conditions, actions.

Can i convert the trigger in text to event, conditions, actions nicely placed there?
User avatar
Hot
Junior Member
Posts: 30
Joined: March 26th, 2008, 2:54 pm

Re: Text vs Events,conditions & actions

Post by Hot »

Flexi wrote:What is the difference of the trigger of a trigger in text and another trigger in events, conditions, actions.

Can i convert the trigger in text to event, conditions, actions nicely placed there?
the trigger in text is called JASS
the trigger with events, conditions, actions is GUI where have symbols for all functions.

You can only convert triggers in "text", not "text" in triggers, cause with JASS you can do more, better things which can't be displayed with GUI.
Once here was something.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Text vs Events,conditions & actions

Post by Arabidnun »

Examples:

[blinking]
GUI:
[/blinking]
Image

[blinking]
GUI: TEXT
[/blinking]

Reveal Map
Events
Map initialization
Conditions
Actions
Visibility - Disable fog of war
Visibility - Disable black mask

This Text version is basically just a Copy and Paste to a forum board type of thing.


[blinking]
JASS:
[/blinking]

function Trig_Reveal_Map_Actions takes nothing returns nothing
call FogEnableOff( )
call FogMaskEnableOff( )
endfunction

//===========================================================================
function InitTrig_Reveal_Map takes nothing returns nothing
set gg_trg_Reveal_Map = CreateTrigger( )
call TriggerAddAction( gg_trg_Reveal_Map, function Trig_Reveal_Map_Actions )
endfunction


These are all the same triggers, just in different format.
Flexi
Member
Posts: 83
Joined: May 6th, 2008, 10:29 am

Re: Text vs Events,conditions & actions

Post by Flexi »

Can i convert GUI:TEXT to GUI?

Or i have to understand GUI:TEXT to slowly convert it to GUI.
Arabidnun
Forum Staff
Posts: 506
Joined: August 5th, 2007, 1:38 pm
Title: Gui Expert
Location: *Unknown*

Re: Text vs Events,conditions & actions

Post by Arabidnun »

You kinda have to understand GUI to convert GUI Text to Gui triggers itself. Its not hard, just try and search for what matches.
Flexi
Member
Posts: 83
Joined: May 6th, 2008, 10:29 am

Re: Text vs Events,conditions & actions

Post by Flexi »

I see lots of post written they need around months or a year to restore the triggers of an unprotected map, what does it mean?
User avatar
Bartimaeus
Tyrannical Drama Queen
Posts: 4446
Joined: November 19th, 2007, 5:05 am
Been thanked: 2 times

Re: Text vs Events,conditions & actions

Post by Bartimaeus »

That's called exaggeration.

But with the maps most people request, it's probably not far off.

Converting all the triggers in EotA, for example, would take massive amounts of time.