WC3Jass.com Forum Index WC3Jass.com
"The Jass Vault"
 
 FAQ   Search   Memberlist   Usergroups   Register 
 Profile   Log in to check your private messages   Log in  
 Forum   Scripts   Files   Chat   Pastebin   Function finder  
Affiliates
The HIVE Workshop Games Modding
The Hubb Wc3Campaigns
WC3-Mapping.net

Introduction to JASS
Goto page Previous  1, 2
 
Post new topic   Reply to topic    WC3Jass.com Forum Index -> Tutorials
View previous script :: View next script  

Author
phyrex1an


Joined: 28 Jun 2005
Posts: 68
Back to top
Message
PostPosted: Thu Oct 13, 2005 8:37 pm    Post subject: Reply with quote

It shouldent be a ( after GetPlayersAll()
View user's profile Send private message

Author
Vexorian


Joined: 07 Apr 2005
Posts: 293
Back to top
Message
PostPosted: Wed Jan 11, 2006 8:38 pm    Post subject: Reply with quote

fixed 2 typos found by anitarf
View user's profile Send private message

Author
PurplePoot


Joined: 20 Dec 2005
Posts: 272
Back to top
Message
PostPosted: Fri Jan 13, 2006 11:42 pm    Post subject: Reply with quote

Quote:

i see the same thing yet my editor insists sumthings wrong!

the prob is that u have an extra bracket
heres Vex's

function whatever takes nothing returns nothing
local string a = "whatever"
call DisplayTextToForce( YourforceHere, a )
endfunction

heres yours

function whatever takes nothing returns nothing
local string a = "whatever"
call DisplayTextToForce( YourforceHere,( a )
endfunction

i bolded the extra bracket

and get JASS SHOP PRO from the tools section in
http://www.wc3sear.ch/index.php?p=Tools&ID=76&sid=3f00467e1c51fdde80a6792c0e8729bb
View user's profile Send private message

Author
IMF Wishmaster
Guest



Back to top
Message
PostPosted: Mon Feb 06, 2006 4:33 pm    Post subject: ! Reply with quote

Thanx alot for this great tutorial !!!!

Author
Vexorian


Joined: 07 Apr 2005
Posts: 293
Back to top
Message
PostPosted: Thu Feb 16, 2006 12:22 pm    Post subject: Reply with quote

that version of JASS shop pro is outdated, in fact a lot of tools in that tools section are outdated

http://www.wc3campaigns.net/showthread.php?t=80105

or

http://www.wc3campaigns.net/showthread.php?t=78566
View user's profile Send private message

Author
PurplePoot


Joined: 20 Dec 2005
Posts: 272
Back to top
Message
PostPosted: Sun Feb 26, 2006 4:43 pm    Post subject: Reply with quote

thx for tellin me!
View user's profile Send private message

Author
Goble-r1sk
Guest



Back to top
Message
PostPosted: Mon May 22, 2006 7:48 pm    Post subject: Error in one code Reply with quote

First, thanks for the tutorial- helped me straighten out a few basic things that id missed when diving into JASS
a typo: In this chunk of code, it should be a random between 1 and 10, not 1 and 100
Code:
function Msg takes string s returns nothing
    call DisplayTextToPlayer(Player(0),0,0, s )
endfunction

function Trig_JASS_test_Actions takes nothing returns nothing
 local integer a=GetRandomInt(1,100)
    call Msg("a="+I2S(a))

    if (a==0) then
        call Msg("zero")
    elseif (a==1) then
        call Msg("one")
    elseif (a==2) then
        call Msg("two")
    elseif (a==3) then
        call Msg("three")
    elseif (a==4) then
        call Msg("four")
    elseif (a==5) then
        call Msg("five")
    elseif (a==6) then
        call Msg("six")
    elseif (a==7) then
        call Msg("seveb")
    elseif (a==8) then
        call Msg("eight")
    elseif (a==9) then
        call Msg("nine")
    else
        call Msg("ten")
    endif
endfunction


Author
Necrowizard


Joined: 12 Apr 2007
Posts: 38
Back to top
Message
PostPosted: Tue Apr 17, 2007 7:18 am    Post subject: Reply with quote

Blade.dk wrote:
JadedOnslaught wrote:
You have Guinsoo on that list of people. You make me want to alternately puke, cry and hit you. If I were Vex, I wouldn't want to be on a list which has Guinsoo on it.


Surely I'll be puking together with you.

Dota sucks, in my opinion, but the worst things is not that he created dota, cause he didn't HE STOLE THE MAP!


Guinsoo created it? Sorry to be off-topic but i need to know this! Wasnt Eul the creator on roc and frog on tft? :s
View user's profile Send private message Visit poster's website MSN Messenger

Author
PurplePoot


Joined: 20 Dec 2005
Posts: 272
Back to top
Message
PostPosted: Wed Apr 18, 2007 3:36 pm    Post subject: Reply with quote

IceFrog took it from Guinsoo in some form or other. I'm not sure if he stole it or it was passed on.

Anyways, they both stole a ton of stuff from wc3search, among other places, so they aren't too highly regarded by a good portion of the mapping community.
View user's profile Send private message

Author
XMrNiceguyX
Guest



Back to top
Message
PostPosted: Thu Jun 07, 2007 5:23 pm    Post subject: Reply with quote

It shouldn't be between 1 and 10 as a matter of fact. 0 and 10. As the trigger is now, "zero" will never ever appear on your screen (while 'ten' will appear on your screen about 9 times as often as it should be Wink)

Author
Lord of knives
Guest



Back to top
Message
PostPosted: Wed Aug 22, 2007 9:13 pm    Post subject: Reply with quote

I am a total noob to JASS and I gat as far as this line but it says somethings wrong with it
function InitTrig_Untitled_Trigger_001 takes nothing returns nothing
set gg_trg_Untitled_Trigger_001 = CreateTrigger( )
call TriggerAddAction( gg_trg_JASS_test, function Trig_JASS_test_Actions )

Plz tell me what im doing wrong!!! [/code]

Author
Bob666


Joined: 29 Jun 2007
Posts: 192
Back to top
Message
PostPosted: Thu Aug 23, 2007 7:05 pm    Post subject: Reply with quote

you are adding the action to gg_trg_JASS_test, but the trigger you create is gg_trg_Untitled_Trigger_001...
only one of them can be right
_________________
Projects:
SupCom | WC3 FlightSim | JASS Benchmark
View user's profile Send private message Visit poster's website

Author
Demonpants
Guest



Back to top
Message
PostPosted: Sun Nov 11, 2007 1:03 am    Post subject: Reply with quote

Good stuff. You say that programmers should just check out the manual, but I rather liked your tutorial and it was quite useful. I may have skipped a bit of it, but overall it was the perfect amount of explanation and sample code to give me enough of a start that I can experiment. And you also told me where I can find the API – I was searching for that forever.

Author
Ingwar


Joined: 11 Nov 2007
Posts: 1
Back to top
Message
PostPosted: Sun Nov 11, 2007 7:54 pm    Post subject: Reply with quote

I can't believe I'm so late with this game. First of all I started playing Warcraft 3 two years after it was published and liked it a lot. Than after two years of playing I tried the World Editor. I liked it even better than the game so I wanted to find some tutorials for it. Didn't took me long to find about JASS. It also interested me but the problem is I don't know first about programing of any kind. Not long ago I started learning HTML, and I'm doing pretty good, it's not so complicated. My only fear is that I will find JASS to hard for me to understand or that people will lose interest in Warcraf 3 and it gets swallowed in the past just when I learn enough to create some good maps. I wonder if there is a program language similar to JASS but easier to learn. Greetings to all of you skillful programmers, map makers and especially tutorial makers cause without your help we ignorant people could just stare at the monitor and ask ourselves: "How to hell did he do that?"
View user's profile Send private message

Author
KaTTaNa
Site Admin

Joined: 04 Apr 2005
Posts: 655
Back to top
Message
PostPosted: Sun Nov 11, 2007 8:29 pm    Post subject: Reply with quote

Ingwar wrote:
I wonder if there is a program language similar to JASS but easier to learn.

The fastest way to learn Jass is to learn Jass, and not to learn another language first. You may want to get comfortable with GUI triggering (point-and-click) to get an understanding of triggers, events, conditions, and actions, and what they do. You should also know how to use variables and arrays, and understand variable types (e.g. why an integer cannot be compared to a string). After that you can start chewing through tutorials, learn from other people's code, experiment on your own, ask for help here when you are stuck, start a flamewar if people don't reply, etc.

Quote:
My only fear is that I will find JASS to hard for me to understand or that people will lose interest in Warcraf 3 and it gets swallowed in the past just when I learn enough to create some good maps.

While Warcraft 3 isn't exactly the top story anymore, I wouldn't worry about it "dying" anytime soon. People are still playing Starcraft, you know. And besides, if you learn Jass now, you will have a much easier time learning other programming languages, like Starcraft II scripting, so don't think you will waste your time.
View user's profile Send private message Send e-mail Visit poster's website

Display posts from previous:   
Post new topic   Reply to topic    WC3Jass.com Forum Index -> Tutorials All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


FSDark by SkaidonDesigns
Powered by phpBB © 2001, 2002 phpBB Group