[Classroom] GUI 101

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180

this code :
Set Unit[(Player number of (Owner of (Dying unit)))] = (For Player 1 (Red) create a unit of type Footman at location Point facing 0.00 degrees)

the UNIT is using wat type of variables mind tell?
 
T

thedude

Guest
this code :
Set Unit[(Player number of (Owner of (Dying unit)))] = (For Player 1 (Red) create a unit of type Footman at location Point facing 0.00 degrees)

the UNIT is using wat type of variables mind tell?

Unit
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
done :p

Code:
Poo
    Events
        Unit - A unit Dies
    Conditions
        (Owner of (Triggering unit)) Equal to Player 1 (Red)
    Actions
        Set loc[0] = (Center of (Playable map area))
        Unit - Create 1 Footman for Player 1 (Red) at loc[0] facing Default building facing (270.0) degrees
        Custom script: call RemoveLocation(udg_loc[0])

Nice job, I'll be picking the best and most best and the absolute most best with a slight best to give rep to. It might be multiple members.

Code:
"Poo"
    Events
        Unit - A unit Dies
    Conditions
        (Owner of (Dying unit)) Equal to Player 1 (Red)
    Actions
        Set Point = (Center of (Playable map area))
        Set Unit[(Player number of (Owner of (Dying unit)))] = (For Player 1 (Red) create a unit of type Footman at location Point facing 0.00 degrees)
        Point - Remove Point

Yea, repetitive...

Lol.. Anyways, the "Set Unit...." part is not necessary, but is absolutely fine to do it in that way. Hmm... Is that WEU? Also, is that freehand or was it c'n'p. The point - Remove <Var> seems like it is from WEU. It is completely alright if you use WEU, because I didn't tell that you couldn't. :p Nice job!

@GaLs: It is not advanced, unless it is an advanced trigger, but that is just a name which doesn't entirely mean it is advanced because that is a simple code that is easy to implement in JASS. :D

@GaLs: If it says "Unit", it is a little obvious that it is a unit array. lol :rolleyes:

Good Job ~GaLs~ and thedude!

Note: You can easily c'n'p what I said to do and put it into code form, then just easily do the challenge if you want to. :D

I gave ya guys (And girls if any) a freebee on that assignment. :p
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
lol !!
no ppl are doing his homework / assignment @@!
 

Miz

Administrator
Reaction score
424
~GaLs~ said:
lol !!
no ppl are doing his homework / assignment @@!

They don't have to like I'm the Superintendent also pheonix and PurgeandFire is a teacher you don't get paid so he doesn't have to do it and we can't punish someone if they don't do there homework

PurgeandFire said:
PS. There is a test that is coming soon on May 25th or 26th. Prepare! Don't worry, it won't be too hard.

I think the Test should be the final exam not test every lesson because no one has to do it ;)

But if its a final exam if you don't do it you don't pass the class which doesn't mean anything its just that you wasted your time thats all

but PurgeandFire I'll be talking with you privatey about your classroom but so far it seems to be ok...

so if you get a PM from me please reply back
 

Miz

Administrator
Reaction score
424
Head of the Classroom system in TH.net

In real life it someone that control the school system in a county or state (depending where you live)
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
i see....so u 2 are juz like headmaster or sumthing lidat lar??
 

Miz

Administrator
Reaction score
424
theres 2 of us but yes

[Teachers Wanted]
(not as much as before but we still need some)

If you want to become a teacher go to the Classroom thread

Yes I get to post off topic stuff in a classroom thread :p
 

Omni

Ultra Cool Member
Reaction score
37
>- Custom Scripts

gui 101?
custom scripting already, i hope people get it(who dont know about GUI)
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Lol... It is for people that want a challenge. IMO, the people here seem like they already know a lot of the basics, so it won't be too hard. Yes, you need to use custom scripts if you want to do the challenge, but it is technically GUI, but you use JASS in it. :D

@Mizuio-Ken: It is just a review coming in a month or something, not too big. The reason I did this was to make sure that people actually read and understand what I am teaching. I say that from experience; me being a skim-reader and all. :rolleyes: :D
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
BUMP!

People who did their homework so far:
  • ~GaLs~
  • thedude
  • MapMaker
  • denmax
  • TheK1ll3r

It is the easiest homework evur, I even posted the answer in the assignment! :p
 

denmax

You can change this now in User CP.
Reaction score
155
Code:
Poopy Poop
     Events
          Unit - A unit Dies
     Conditions
          (Owner or (Triggering Unit)) Equal to Player 1(Red)
     Actions
          Custom Script: local Unit udg_VarUnit
          Custom Script: local Location udg_Point
          Set Point = (Center of (Playable Map Area)
          Unit - Create 1 Footman for Player 1 (Red) at Point facing Default facing degrees
          Set VarUnit = (Last Created Unit)
          Custom Script: call RemoveLocation(udg_Point)

^-^ (Just some random Global Locals)

PS: Add me! XD

EDIT: Isn't Memory leak fixing NOT GUI?
 

PurgeandFire

zxcvmkgdfg
Reaction score
509
Code:
Poopy Poop
     Events
          Unit - A unit Dies
     Conditions
          (Owner or (Triggering Unit)) Equal to Player 1(Red)
     Actions
          Custom Script: local Unit udg_VarUnit
          Custom Script: local Location udg_Point
          Set Point = (Center of (Playable Map Area)
          Unit - Create 1 Footman for Player 1 (Red) at Point facing Default facing degrees
          Set VarUnit = (Last Created Unit)
          Custom Script: call RemoveLocation(udg_Point)

^-^ (Just some random Global Locals)

PS: Add me! XD

EDIT: Isn't Memory leak fixing NOT GUI?

Lol... Yea, it is JASS, but those are for the people ahead of the class. As for your trigger, there is no need to set the unit to a variable, but it is still excellent 10/10 work. I'll add you to the list of people who did their homework. ;)
 
T

TheK1ll3r

Guest
I don't know much about variables and leaks so I just did homework
Code:
Poo
  Events
       Unit - A Unit Dies
  Conditions
       (Owner or (Triggering Unit)) Equal to Player 1 (red)
  Actions
       Unit - Create 1 Footman for Player 1 (red) at Center of (Playable map area)) facing Default building facing degrees

P.S. Add me :)
 

Miz

Administrator
Reaction score
424
Sign me up yo i was just posting i need to learn GUI

It maybe hard because the class started also...

I hope you know there will be other session of this class after this grading period (lol) passes new students can come in or teachers can replace old ones (if the old one retires or switches) so don't think you have to sign up now there are other class sessions

-Superintendent Mizuio-Ken
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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