[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 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 The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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