JASS Classroom

Status
Not open for further replies.

esb

Because none of us are as cruel as all of us.
Reaction score
329
Hmmm... maybe it's just me, but I don't see this as a classroom... In assignment 3 I have to correct JASS mistakes... when I don't even know JASS >_<
 

Kenoriga

Ultra Cool Member
Reaction score
34
Some mistakes are really stupid mistakes though... you should be able to spot the KillUnit one and the Terrain one.

I just realised how useful JASS is compared to GUI... The only thing I am having troubles with are the functions, because I dunno most of their names and stuff to put in those brackets. GetTriggerUnit() what?
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
I will give it my best shot though :D
 

esb

Because none of us are as cruel as all of us.
Reaction score
329
I'll read a few tutorials. But the reason I joined this classroom is because I thought they would teach us step by step exactly what jass is... cause I don't get the tutorials much...
But ignore my whining, I'll be back :p

To Hero: I might turn in my assignment 3 a little late :p
 

Estel3

New Member
Reaction score
6
Esb, I feel the exact same way. I even voiced my thoughts a page or two back.

I haven't had the time for assignment 2, I'll get it in someday.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
If you really need something like "they would teach us step by step exactly what jass is..."
It is a really useless method, you could read most of the tutorial for that..

I think hero's purpose was to prevent "Spoon feeding"...
You need to learn, You need to ask !
Ask for it.
 

Exide

I am amazingly focused right now!
Reaction score
448
@Hero12341234
I think you should scratch that ugly picture of who turned in what assignment. :p
Use text instead, faster and easier to update and better-looking as well.
 

Estel3

New Member
Reaction score
6
Gals I understand we shouldn't be given the direct answers to whatever the problems he will give us are, but hell some of us have never even TRIED a JASS trigger and we expected to make one from scratch and fix the errors of another?
It wouldn't serve me well to start asking "How do you start the trigger? How do you get events/actions/conditions to work? How do you make a local variable?"

Basically this is a teach yourself class, which I could easily just sift through tutorial after tutorial to learn. So I do agree with the keep it challenging, but give us something to work with. Or like I said, I'll just go read Rheias' tutorial and forget about this class.
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
>>I'll just go read Rheias' tutorial and forget about this class.
Doing 2 would be the best :D
 

Hero

─║╣ero─
Reaction score
250
@Hero12341234
I think you should scratch that ugly picture of who turned in what assignment. :p
Use text instead, faster and easier to update and better-looking as well.

Yeah I will most likely set up a table in excel and screenshot it..

If you really need something like "they would teach us step by step exactly what jass is..."
It is a really useless method, you could read most of the tutorial for that..

I think hero's purpose was to prevent "Spoon feeding"...
You need to learn, You need to ask !
Ask for it.

That is my exact purpose...when I learned I learned the hard way...and look where I am now...trust me it will be good in the end

Gals I understand we shouldn't be given the direct answers to whatever the problems he will give us are, but hell some of us have never even TRIED a JASS trigger and we expected to make one from scratch and fix the errors of another?
It wouldn't serve me well to start asking "How do you start the trigger? How do you get events/actions/conditions to work? How do you make a local variable?"

Basically this is a teach yourself class, which I could easily just sift through tutorial after tutorial to learn. So I do agree with the keep it challenging, but give us something to work with. Or like I said, I'll just go read Rheias' tutorial and forget about this class.

If you have any questions..contact me PM or MSN.. I will be willing to help you
 

SerraAvenger

Cuz I can
Reaction score
234
I can teach "Advanced" Code Optimization.

Think so?
Ever read the CLR?

@Estel3
The basic components of a trigger is the initializer and the action
Both are functions
The initializer's name has to be InitTrig_[TRIGGER NAME]
( eg
JASS:
function InitTrig_NewTrigger takes nothing returns nothing
)
These functions are called at map initialization, there you append the actions with the function TriggerAddAction( udg_[TRIGGER NAME] , function [ACTION'S FUNCTION NAME] )
( eg
JASS:
TriggerAddAction( udg_NewTrigger , function NewTrigger_Actions )
)
and register the event on which the triggers fire.
The main problem with the event is that there is no real "event", but there are:
Player events
Unit events
Playerunit events ( which fire if a unitevent of a unit owned by certain player appears )
Time events
.
.
.
So you have to check first which type of event you want to register, then you call the function for that: TriggerRegister[EVENT TYPE]Event( udg_[TRIGGER NAME], [Event NAME] , some other parameters ),
eg:

Clear now?
 
R

Rode

Guest
This is kinda hard..
Anyway if I do it in gui and convert it I get this:
call AddSpecialEffectLocBJ( GetRandomLocInRect(GetPlayableMapRect()), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )

and there is a local called effect right?

So should I do something like:
local effect eff = AddSpecialEffectLocBJ( GetRandomLocInRect(GetPlayableMapRect()), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )


and then call this effect:

call eff

I tried this and it didn't work. Am I on the right track at all?
 

Hero

─║╣ero─
Reaction score
250
This is kinda hard..
Anyway if I do it in gui and convert it I get this:
call AddSpecialEffectLocBJ( GetRandomLocInRect(GetPlayableMapRect()), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )

and there is a local called effect right?

So should I do something like:
local effect eff = AddSpecialEffectLocBJ( GetRandomLocInRect(GetPlayableMapRect()), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )


and then call this effect:

call eff

I tried this and it didn't work. Am I on the right track at all?

I recommend JASS CRAFT

Just get rid of the BJ's jasscraft can help with that :D
 

0zaru

Learning vJASS ;)
Reaction score
60
You are close... you have set the effect and the local, now you have to remove leaks
 
R

Rode

Guest
OK, but it doesn't work
I cant write "call eff" (it says, "expected a function name" when I try that)
What do you mean by remove BJ?
 

0zaru

Learning vJASS ;)
Reaction score
60
You don't have to call when you do this
local effect eff=AddSpecialEffectLocBJ( GetRandomLocInRect(GetPlayableMapRect()), "Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTo.mdl" )

You have added the special effect ;)

Remove BJ is that you have to remove useless functions, that can be replaced with natives.
 
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top