wc3edit.net

United Warcraft 3 map hacking!
It is currently April 23rd, 2024, 6:15 pm

All times are UTC




Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GUI to Jass?
PostPosted: March 19th, 2007, 7:07 pm 
Offline
Newcomer
User avatar

Joined: March 14th, 2007, 7:14 pm
Posts: 9
Is it possible to convert GUI triggers to Jass???


Top
 Profile  
 
 Post subject:
PostPosted: March 19th, 2007, 7:12 pm 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
In world editor click your trigger, then hit Edit >> Convert to custom text.


Top
 Profile  
 
 Post subject:
PostPosted: March 19th, 2007, 8:36 pm 
Offline
Old Wrinkly Member
User avatar

Joined: March 7th, 2007, 7:04 am
Posts: 248
once u convert to text.. it doesnt show the global declaration and the "call initxx" thingy in function main..

is there anyway to make it display?

_________________
Image

The tallest tower.. begins from the ground
Today, you are novice..
Tomorrow, you might be The Master..
And when you are..
Vosszaa will hunt you down..


Top
 Profile  
 
 Post subject:
PostPosted: March 19th, 2007, 8:38 pm 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
vosszaa wrote:
once u convert to text.. it doesnt show the global declaration and the "call initxx" thingy in function main..

is there anyway to make it display?


Thats cause being a seperate trigger from the rest it doesn't need it... If you want to add it all to one trigger then you'll need to add that, I think.


Top
 Profile  
 
 Post subject:
PostPosted: March 19th, 2007, 10:38 pm 
Offline
Forum Staff
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 830
Location: Canada
Title: JASS Programmer
gg_trg_triggername and InitTrig_triggername() are completely different from the trigger itself.

When you create a trigger, you're really creating a "trigger variable" which must be declared as a trigger in globals (ie: trigger gg_trg_triggername=null)

InitTrig_triggername() is under function main which loads up all the map info and the trigger must be "Initialized"

Only need to worry about gg_trg_triggername and InitTrig_triggername() if you're editing the .j script directly


Top
 Profile  
 
 Post subject:
PostPosted: March 19th, 2007, 11:16 pm 
Offline
Old Wrinkly Member
User avatar

Joined: March 7th, 2007, 7:04 am
Posts: 248
Aero wrote:
gg_trg_triggername and InitTrig_triggername() are completely different from the trigger itself.

When you create a trigger, you're really creating a "trigger variable" which must be declared as a trigger in globals (ie: trigger gg_trg_triggername=null)

InitTrig_triggername() is under function main which loads up all the map info and the trigger must be "Initialized"

Only need to worry about gg_trg_triggername and InitTrig_triggername() if you're editing the .j script directly


I know but at first i was learning to edit jass from convert GUI to text, then i use that text to put in jass.

But bcoz of when i already done GUI trigger and convert into text it doesnt show the declare part to me.. so i have to make it maslef, and i just worry that i could make mistake.

_________________
Image

The tallest tower.. begins from the ground
Today, you are novice..
Tomorrow, you might be The Master..
And when you are..
Vosszaa will hunt you down..


Top
 Profile  
 
 Post subject:
PostPosted: March 21st, 2007, 6:12 pm 
Offline
Newcomer
User avatar

Joined: March 14th, 2007, 7:14 pm
Posts: 9
If I convert my trigger to Custom Text, how will i put it to .j using Jass Craft???


Top
 Profile  
 
 Post subject:
PostPosted: March 21st, 2007, 8:09 pm 
Offline
Honorary wc3edit.net Traitor
User avatar

Joined: February 1st, 2007, 4:11 pm
Posts: 2513
Location: NEVADA
Heres a way to not mess up.

Extract your maps .j with GUI Triggers within it.

Take the global variables, put them along with the others in your other maps .j.

Now, take all the functions, but remove comments and unnecessary blank lines and such.

Now, don't copy the "call custom triggers" thing,.

Manually type out InitTrig_yourtriggername( ) after it sais "InitBlizzard()" under function main.

Do this, and after reimport the .j over the other, flush the map in mpqmaster, delete the attributes, and its a sure with, but, if you aren't confident with yourself, check your syntax on the way or take it slow!

=o


Top
 Profile  
 
 Post subject:
PostPosted: March 21st, 2007, 8:32 pm 
Offline
Forum Staff
User avatar

Joined: January 28th, 2007, 8:10 pm
Posts: 830
Location: Canada
Title: JASS Programmer
It doesn't where you put InitTrig_yourtrig() under function main as long as it's declared after any locals

Also, you could eliminate InitTrig all together by declaring your trigger as =CreateTrigger() in globals and adding the TriggerRegister + Conditions/Actions with the rest of them under function main


Top
 Profile  
 
 Post subject:
PostPosted: March 25th, 2007, 10:24 am 
Offline
Newcomer
User avatar

Joined: March 14th, 2007, 7:14 pm
Posts: 9
I have a .j file which Triggers are in Jass. I have created some triggers, I have converted them into Custom Text, but I didn't understand where to copy them in the .j file using Jass Craft :| please help!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)