GUI -- JASS - List

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
http://rapidshare.de/files/9482499/GUI--JASS.txt.html

Code:
______________________________________________
\           Using Specific Units             /
/____________________________________________\

GUI Usage                           JASS Usage

Last Created Unit                 - LastCreatedUnit
                                  -
Last Restored Unit                - LastRestoredUnitBJ
                                  -
Last Replaced Unit                - LastReplacedUnitBJ
                                  -
Last Haunted Gold Mine            - LastHauntedGoldMine
                                  -
Picked Unit                       - EnumUnit
                                  -
Matching Unit                     - FilterUnit
                                  -
Random Unit from Unit Group       - GroupPickRandomUnit(*UnitGroup*
                                  -
Attacked Unit                     - AttackedUnitBJ
                                  -
Attacking Unit                    - Attacker
                                  -
Buying Unit                       - Buying Unit
                                  -
Cancelled Structure               - CancelledStructure
                                  -
Casting Unit                      - SpellAbilityUnit
                                  -
Constructing Structure            - ConstructingStructure
                                  -
Constructed Structure             - ConstructedStructure
                                  -
Damage Source                     - EventDamageSource
                                  -
Decaying Unit                     - DecayingUnit
                                  -
Dying Unit                        - DyingUnit
                                  -
Entering Unit                     - EnteringUnit
                                  -
Hero Manipulating Item            - ManipulatingUnit
                                  -
Killing Unit                      - KillingUnitBJ
                                  -
Learning Hero                     - LearningUnit
                                  -
Leaving Unit                      - LeavingUnit
                                  -
Leveling Hero                     - LevelingUnit
                                  -
Loading Unit                      - LoadedUnitBJ
                                  -
Ordered Unit                      - OrderedUnit
                                  -
Ownership-changed unit            - ChangingUnit
                                  -
Researching Unit                  - ResearchingUnit
                                  -
Revivable Hero                    - RevivableUnit
                                  -
Reviving Hero                     - RevivingUnit
                                  -
Selling Unit                      - SellingUnit
                                  -
Sold Unit                         - SoldUnit
                                  -
Summoned Unit                     - SummonedUnit
                                  -
Summoning Unit                    - SummoningUnit
                                  -
Target unit of issued order       - OrderTargetUnit
                                  -
Target unit of ability being cast - SpellTargetUnit
                                  -
Targeted unit                     - EventTargetUnit
                                  -
Trained unit                      - TrainedUnit
                                  -
Transporting unit                 - TransportUnitBJ
                                  -
Triggering unit                   - TriggerUnit
                                  -
Rally-Point of (Unit) as a Unit   - UnitRallyUnit(Get*Unit*

Code:
______________________________________________
\                   Points                   /
/____________________________________________\

Center of (Region)                                                - GetRectCenter(Get*region*())
                                                                  -
Random point in (Region)                                          - GetRandomLocInRect(Get*region*())
                                                                  -
Center of (Region) offset by (X, Y)                               - OffsetLocation(GetRectCenter(Get*Region*()), *X*, *Y*)
                                                                  -
Center of (Region) offset by (Distance) towards (Degrees) degrees - PolarProjectionBJ(GetRectCenter(Get*Region*()), *Distance*, *Angle*)
                                                                  -
Target of (Camera)                 *1 player games only*          - CameraSetupGetDestPositionLoc(Get*Camera*())
                                                                  -
Target of current camera view      *1 player games only*          - GetCameraTargetPositionLoc()
                                                                  -
Source of current camera view      *1 player games only*          - GetCameraEyePositionLoc()
                                                                  -
Point(*X*, *Y*)                    *Coordinates*                  - Location(*X*, *Y*)
                                                                  -
Position of (Destructible)                                        - GetDestructableLoc(Get*Destructible*())
                                                                  -
Target point of issued order       *Event Response*               - GetOrderPointLoc()
                                                                  -
Target point of ability being cast *Event Response*               - GetSpellTargetLoc()
                                                                  -
Position of (Item)                                                - GetItemLoc(Get*Item*())
                                                                  -
Destination of (Waygate)                                          - WaygateGetDestinationLocBJ(Get*Unit*())
                                                                  -
(Player) start location                                           - GetPlayerStartLocationLoc(Player(*Player # - 1*))
                                                                  -
Position of (Unit)                                                - GetUnitLoc(Get*Unit*())
                                                                  -
Rally point of (Unit) as a point                                  - GetUnitRallyPoint(Get*Unit*())

-----Comments-----

Dashes fixed! (Just found out it is no different in note pad than on here)

What I did was I took a basic trigger, and converted it to custom text a lot, and copied what I saw for the JASS part.

The parts with *'s around them are from other units like a unit group, or another specific unit.

Note pad uploaded

Sorry it's at rapidshare, but i'm having a little trouble removing one of my useless uploads.
 

emjlr3

Change can be a good thing
Reaction score
395
I don't get it.....
 

Pyromancer3d

New Member
Reaction score
1
Darthfett said:
I'm not sure what this one is... I made it a little bit ago, and it didn't make sense, so I took it out, and put it here at the bottom. (It's not a unit, and I don't think it's a point, because of the" Unit - "
I'll figure it out later though).

Rally-Point of (Unit) - Unit - UnitRallyUnit(Get*Unit*


That would be the rally point of a unit (a building for example) for any trained units, the rally point would be the point at which the units travel to after being trained. The "UnitRallyUnit" would likely be the trained unit traveling to the rally point of the building, but not sure exactly, as I've never used that exact part before.

hope that clears it up, and why it's "unit"

@Rad: As for the 'tutorial-ness' of this post, I think it's more/less a cheat sheet if you wanted to use JASS coding if WE somehow screws up with the GUI trigger functions.
 

Rad

...
Reaction score
228
I meant would it go in the tutorial repository, but he didnt explain how to use them so it doesnt qualify.... but yeah this could go in the free trigger code, I guess :rolleyes:
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
OK, just to clarify some points, I first wanted to learn myself, so I decided to write them all down for future reference. Then, I decided to post it on here for others to learn also. I guess it could be used after you have learned how to write basic triggers, and to be able to switch from GUI/JASS a little easier. For example, if you want to do 50% in JASS, and 50% in GUI, because you only know half in JASS, you could use this to make it all JASS.

If it should be in the Free Trigger Code thread, could a moderater please move it? (Was originally going to have it put into tutorials, but I didn't explain anything, and I'm also new to JASS).

Also, does anyone want the notepad thing? (It has cool a cool title, and looks better)!
 

Rad

...
Reaction score
228
Sure I could use it, trying to learn some JASS myself its not exactly my #1 priority though.
 

Pyromancer3d

New Member
Reaction score
1
Sure, I could use it as well, not for current project, but in future projects it could definately come in handy.
 

Pyromancer3d

New Member
Reaction score
1
It is much cleaner in the notepad version :)

and the only part I quoted of you in my first post I notice is now gone, did it clear up a little understanding in what it was?
 
W

Warnicro

Guest
well these aren't to hard to figure, just do an action and convert it into jass text, and you have it.
 

Rad

...
Reaction score
228
My god I [highlight]HATE HATE HATE[/highlight] rapidshare! Upload to TH.net, click the 'manage attachments' button to upload! It took me so dam long to find out where to download the file!!

But its nice, had to delete the crap at the top as it was to big :p haha
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
Rad said:
My god I HATE HATE HATE rapidshare! Upload to TH.net, click the 'manage attachments' button to upload! It took me so dam long to find out where to download the file!!

Darthfett said:
Sorry it's at rapidshare, but i'm having a little trouble removing one of my useless uploads.

The actual reason, is that the thread is closed, so I am unable to delete it, but I am seeking help from Sargon.

Warnicro said:
well these aren't to hard to figure, just do an action and convert it into jass text, and you have it.

Yep. But if you're learning, it's faster, and you don't have all of the other stuff around it.

Pyromancer3d said:
It is much cleaner in the notepad version

Yes it is. I copied it onto here after making it on there... but each letter on the notepad is 1 block... unlike on here. (A capital O takes more space than a period, changing the spaces).

Also, yes you did clear it up a bit. I fixed it in the first post, so I wouldn't confuse anyone. (They'll be able to see what it originally was, since you quoted me, if they read any further.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
Keep in mind that alot of the functions that are called by the GUI are not the root functions. There are alot of GUI functions that just call native functions, but with switched arguments and stuff. If you want to do JASS I would highly reccomend Jass Shop Pro, as it tells you when you are using a useless GUI function, and you can view what the GUI function does, and then replace it with a native function.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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