System Twyddli's Basic Functions

T

Twyddli

Guest
Hey every one, I have created a bunch of Functions that may help you Learn JASS easier, or type it faster. Some of the functions i have created are really simple, allowing you to understand very basic things.

All my Functions do is call other functions, though i have made them call the other functions in a way that allows you to reduce how much you need to type, and what you need to type.
These are quite basic, and if you know a lot about JASS, then these could possibly reduce the quality of your JASS rather than increase it.
If you are a beginner at JASS, Then this may be able to help you learn more easily.

There are Five different Groups I have made so far, and i will continue to work on them. The Five groups are -

Creating Units
Unit Orders
Messaging Players
Changing Unit Face Angle
Waiting
Resources.

Getting The Functions In your game.
Ok, after you have downloaded my functions, they are in a notepad. Open up the note pad, and copy everything in there. Then open up your map editor, create the map you want, and click the trigger editor. The only trigger in there is called the name of your map, and it has a little map editor icon at the start of its name, click on this, then click on the bottom box, and push Ctrl + V that will paste all the functions in there. Then save your map and you can begin the the tutorial i will be posting.

Remember, this probably isn't any good for people who are REALLY good at Jass. It's more of a beginners thing.
Good luck

You can post your ideas for other Functions in this thread, but don't expect me to do them, I may or may not. Feed back is good.
Hope you like it. ;)
Good luck :cool:
If you want a tutorial for these functions, then go here > http://www.thehelper.net/forums/showthread.php?p=521105#post521105
Edit: I removed a function that doesn't work.
 

Attachments

  • Twyddli's Functions.txt
    30.6 KB · Views: 288
arent this all can get it in jasscraft?

And it is too short...can give more explanation about the function u typed in..?
Edit: Oh sry...didnt see the thread...xP
but u should explain it at that thread but not spam the same tut ...
 
arent this all can get it in jasscraft?

And it is too short...can give more explanation about the function u typed in..?

This text has custom-defined functions though... A bunch of them.. :)

They aren't accessable in JASSCraft. But they can be made in JASSCraft.
 
GaLs, If i were to talk more about the functions, i think i may end up just re wording my Tut. Or, are you saying that i should type up every function in here and talk a little bit about it? Because that would take quite some time.
I may make another thread, or post another part on the tutorial with a bunch of the functions, and what things they take.
;)
 
The first thing I noticed was, that your spawn functions doesn't take rawcodes and they don't return anything, which makes it's rather hard to refer to the unit your spawning, etc. let's say I want to add a ability to the spawned unit:
JASS:
function ...
    call SpawnUnitMapCenter(Player(0),"footman",0)
    call UnitAddAbility(?,'Avul')
endfunction
If the function returned a unit, it wouldn't be a problem:
JASS:
function ...
    local unit u = SpawnUnitMapCenter(Player(0),"footman",0)
    call UnitAddAbility(u,'Avul')
endfunction
Also most of your functions takes a rect, and then gets the location from the rect. A much faster and efficient way would be to change the rect parameter to a loc parameter.
 
Well, With the rects, i did this so that when the begginers first start doing JASS, they can still use thier Regions, quite easily. But i might change that. And i wll also make the spwn units return a unit. So we can refter to the created unit. Thanks for you Thoughts ;)
 
General chit-chat
Help Users
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top