wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Tutorials > JASS/AI scripts tutorials
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 01-04-2007, 09:43 PM   #32
PitzerMike
Alcopops
 
PitzerMike's Avatar


Tools & Tutorials Moderator
 
Join Date: Jan 2003
Posts: 2,794

Submissions (12)

PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)PitzerMike is a splendid one to behold (643)

Approved Map: Pitzer's Minesweeper

Default

Keep em coming.
__________________
Zoom (requires log in)
PitzerMike is offline   Reply With Quote
Old 01-06-2007, 12:14 AM   #33
Toink
User
 
Join Date: Oct 2006
Posts: 1,086

Submissions (3)

Toink is on a distinguished road (17)

Send a message via Yahoo to Toink
Default

Good job explaining the stuff, I never really understood what return values do lol..

Next lessons should be more complex, like knockback, jumping, those kind of things.
Toink is offline   Reply With Quote
Old 01-06-2007, 12:28 AM   #34
darkwulfv
Alpha Male of Wc3c
 
darkwulfv's Avatar


Official Map Reviewer
 
Join Date: Mar 2006
Posts: 3,646

Submissions (6)

darkwulfv is just really nice (270)darkwulfv is just really nice (270)

Send a message via AIM to darkwulfv
Default

Quote:
Next lessons should be more complex, like knockback, jumping, those kind of things.

Ah, but you see, we don't do that. That's where YOU come in. We just teach you JASS itself. What everything does. We don't teach you HOW to do things, other then setting up functions, calling functions, etc.

But once we finish these, we might set up some how-to's.
__________________
The Spell Request Thread
Quote:
Originally Posted by Joe-Black-5
a dota like map but with unique stuff
(There was no map attached, and that was all the thread said.)
Spells I've Made

Darkwulfv's Lightning Grapple || Tritanis' Lazy Bolt

darkwulfv is offline   Reply With Quote
Old 01-06-2007, 03:27 AM   #35
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default

Lesson 5 will be here shortly with creating triggers in JASS. I'm also putting some more info into the third lesson on functions.

EDIT: Here's lesson 5 /pokes darkwulfv to add it to the first post. If anything in this lesson isn't described well enough, please say so.
Attached Files
File Type: zip Lesson5.zip (2.7 KB, 44 views)
__________________
A member of Clan TDG - Quality mapmaking and playtesting.

Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials.

Last edited by wyrmlord : 01-06-2007 at 04:27 AM.
wyrmlord is offline   Reply With Quote
Old 01-06-2007, 08:47 PM   #36
darkwulfv
Alpha Male of Wc3c
 
darkwulfv's Avatar


Official Map Reviewer
 
Join Date: Mar 2006
Posts: 3,646

Submissions (6)

darkwulfv is just really nice (270)darkwulfv is just really nice (270)

Send a message via AIM to darkwulfv
Default

/bites wyrm's finger. No poking.

Ok, I'll get on lesson 6, Memory Leaks.

zomg ub3r update!

I have put all the files into one single zip. Unfortunately, I was unable to fit them in individual folders, it wouldn't let me. Anyways, all the lessons currently finished are in there.
(Thank Vex for that, he told me to.)

Here ya go. Lesson 6 is in there now.
__________________
The Spell Request Thread
Quote:
Originally Posted by Joe-Black-5
a dota like map but with unique stuff
(There was no map attached, and that was all the thread said.)
Spells I've Made

Darkwulfv's Lightning Grapple || Tritanis' Lazy Bolt


Last edited by darkwulfv : 01-07-2007 at 05:27 AM.
darkwulfv is offline   Reply With Quote
Old 01-07-2007, 02:34 PM   #37
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default

Too many folders in that file, replace it with this.
Attached Files
File Type: zip JASS Tutorials.zip (26.1 KB, 37 views)
__________________
A member of Clan TDG - Quality mapmaking and playtesting.

Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials.
wyrmlord is offline   Reply With Quote
Old 01-07-2007, 04:19 PM   #38
darkwulfv
Alpha Male of Wc3c
 
darkwulfv's Avatar


Official Map Reviewer
 
Join Date: Mar 2006
Posts: 3,646

Submissions (6)

darkwulfv is just really nice (270)darkwulfv is just really nice (270)

Send a message via AIM to darkwulfv
Default

Oh.... Maybe mine did have folders. I blame the program I use. I'll replace it immediatly, thanks.
__________________
The Spell Request Thread
Quote:
Originally Posted by Joe-Black-5
a dota like map but with unique stuff
(There was no map attached, and that was all the thread said.)
Spells I've Made

Darkwulfv's Lightning Grapple || Tritanis' Lazy Bolt

darkwulfv is offline   Reply With Quote
Old 01-12-2007, 08:59 PM   #39
Masamune Revnant
User
 
Masamune Revnant's Avatar
 
Join Date: Jan 2007
Posts: 18

Masamune Revnant has little to show at this moment (2)

Default

wow lots of posts in the past 3 days XD
Masamune Revnant is offline   Reply With Quote
Old 01-13-2007, 07:51 PM   #40
darkwulfv
Alpha Male of Wc3c
 
darkwulfv's Avatar


Official Map Reviewer
 
Join Date: Mar 2006
Posts: 3,646

Submissions (6)

darkwulfv is just really nice (270)darkwulfv is just really nice (270)

Send a message via AIM to darkwulfv
Default

Not many people post, they grab the tutorial and go.

I'm assuming you did the opposite. You posted without grabbing the tutorial.
If you DID get it, please, comments or feedback?
__________________
The Spell Request Thread
Quote:
Originally Posted by Joe-Black-5
a dota like map but with unique stuff
(There was no map attached, and that was all the thread said.)
Spells I've Made

Darkwulfv's Lightning Grapple || Tritanis' Lazy Bolt

darkwulfv is offline   Reply With Quote
Old 02-06-2007, 04:09 PM   #41
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default Lesson 7 - Starting a Spell

Just finished lesson 7 and here it is. In this lesson we'll start making a spell based on the Omnislash (I think that's the name) from DotA.

Since I found that I could create HTML files with OpenOffice, I decided to give it a try. If you have any ideas about how I could change the layout of the tutorial please say so.

Lastly, if you're having any kind of trouble or you don't think the lesson is clear enough, please say so.
Attached Files
File Type: zip Lesson7.zip (4.4 KB, 31 views)
__________________
A member of Clan TDG - Quality mapmaking and playtesting.

Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials.

Last edited by wyrmlord : 02-19-2007 at 04:13 AM.
wyrmlord is offline   Reply With Quote
Old 02-18-2007, 11:18 PM   #42
WILL THE ALMIGHTY
. . .
 
WILL THE ALMIGHTY's Avatar
 
Join Date: Oct 2006
Posts: 1,529

Submissions (21)

WILL THE ALMIGHTY is just really nice (284)WILL THE ALMIGHTY is just really nice (284)

Default

I'd like to point out I put the code into Jasscraft and it had about 7 errors...

That and I am completly lost as to how to run a jass trigger... I think I know how, but I'm not sure.

Last edited by WILL THE ALMIGHTY : 02-18-2007 at 11:21 PM.
WILL THE ALMIGHTY is offline   Reply With Quote
Old 02-19-2007, 04:03 AM   #43
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default

The code from lesson 7? I'll check it to find any possible errors. I made the code without syntax checking it, so it's very likely to have some possible errors.

EDIT: Found the errors and fixed them. The file in my last post has been updated. +Rep if I could
__________________
A member of Clan TDG - Quality mapmaking and playtesting.

Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials.

Last edited by wyrmlord : 02-19-2007 at 04:13 AM.
wyrmlord is offline   Reply With Quote
Old 02-19-2007, 10:32 PM   #44
WILL THE ALMIGHTY
. . .
 
WILL THE ALMIGHTY's Avatar
 
Join Date: Oct 2006
Posts: 1,529

Submissions (21)

WILL THE ALMIGHTY is just really nice (284)WILL THE ALMIGHTY is just really nice (284)

Default

A question about functions and triggers...

I know how to make a trigger that will call a function at a certain event, but what about functions? Where do I put them?

Also, functions should only contain certain "actions" that it will do when called... right?
WILL THE ALMIGHTY is offline   Reply With Quote
Old 02-20-2007, 04:12 AM   #45
wyrmlord
User
 
wyrmlord's Avatar
 
Join Date: Feb 2006
Posts: 399

Submissions (2)

wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)wyrmlord has a spectacular aura about (77)

Default

Everything you do must be inside a function, well just about everything. Initializing a trigger is done inside a function, the trigger actions are contained in a function. Functions are pretty much everything that isn't a variable come to think of it.

Now, for the trigger part. You first create a new trigger and then convert it to custom text. Now, take a look at the InitTrig function. You need to add a line that will be TriggerRegister... which adds an event to your trigger. For a list of all these, get a tool or convert GUI triggers to JASS to see what they call, and then look up those functions in another tool to find out if they're actually useful.

Next, add a condition if you want. You just make an extra function that takes nothing and returns boolean (true/false). You then call TriggerAddCondition(<trigger_variable>, Condition(<function>)) Lastly, you have another function that will be called for actions. When you convert a trigger to custom text, this is already done for you so you can just take a look and see how it's done.

This was all covered in lesson 5, but hopefully this clears it up a bit more.
__________________
A member of Clan TDG - Quality mapmaking and playtesting.

Tired of boring old GUI? Want to learn JASS? Take a look at these tutorials.
wyrmlord is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 05:13 AM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services