Tutorial Tutorial to -give, so you can GIVE stuff to people in your map!

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
You: :eek: SO MUCH WRITING, I AIN'T READING THIS!!!
Me: Read this, it HELPS allot, and its not much writing! You DON'T have to read it all, But it makes more sence if you do read it all before posting
You: :eek: Fine
you when youve finished reading: It makes sence, I could do that, following your Triggers!
Me: It helps allot, doesn't it?
You: yes it does! I can now type in -give in the game and it summons the dialog 'magically'and can give my Unit thats not a hero, to the person I want! making sure I don't give it to a person thats not playing like Brown not playing.
Me: Who do you thank?
You: You and BloodySkulls?
Me: Yes
You: THANKS!

Heheh, so, YOU BETTER READ IT EVEN THOUGH THERES ALLOT OF WRITING! I may even put up some pic's of it working! or a vidio....!
READ BEFORE READING: Thank BloodySkulls for helping me with some of the triggers (For other things, just made them into this trigger)

DialogButton[1] is a variable DialogButton with an array of 12

Dialog is a variable Dialog with no array

if your stuck on
(units owned by (triggering player) matching ((((Matching unit) is A Hero) Not equal to True) and (((matching unit) is selected by (triggering player)) Equal to true))
Its: Units owned by player matching condition

You can change the Dialog to anything you want

You can change the DialogButton to what ever you want! MAKING SURE that Button is at the end of the name (I.E. Give is the Dialog and GiveButton is the Dialog Button)

Another thing: DialogButton[1] is for player 1 (Red) While DialogButton[2] is for player 2 (Blue) and DialogButton[5] is for Player 5 (yellow) AND DialogButton[12] is for player 12 (Brown) REMEMBERING: the [*] ('*' being the number) is not apart of the DialogButton, its part of the 'Array'! :thup:

Heres the trigger:
Trigger:
  • Give
    • Events
      • Player - Player 1 (Red) types chat message -give as an exact match
      • Player - Player 2 (Blue) types chat message -give as an exact match
      • Player - Player 3 (Teal) types chat message -give as an exact match
      • Player - Player 4 (Purple) types chat message -give as an exact match
      • Player - Player 5 (Yellow) types chat message -give as an exact match
      • Player - Player 6 (Orange) types chat message -give as an exact match
      • Player - Player 7 (Green) types chat message -give as an exact match
      • Player - Player 8 (Pink) types chat message -give as an exact match
      • Player - Player 9 (Gray) types chat message -give as an exact match
      • Player - Player 10 (Light Blue) types chat message -give as an exact match
      • Player - Player 11 (Dark Green) types chat message -give as an exact match
      • Player - Player 12 (Brown) types chat message -give as an exact match
    • Conditions
    • Actions
      • Dialog - Clear Dialog
      • Dialog - Change title of Dialog to Pick the Color you want to give your unit to:
      • Dialog - Create a dialog called Red
      • Set Dialog Button[1] = Last created button)
      • Dialog - Create a dialog called Blue
      • Set Dialog Button[2] = Last created button)
      • Dialog - Create a dialog called Teal
      • Set Dialog Button[3] = Last created button)
      • Dialog - Create a dialog called Purple
      • Set Dialog Button[4] = Last created button)
      • Dialog - Create a dialog called Yellow
      • Set Dialog Button[5] = Last created button)
      • Dialog - Create a dialog called Orange
      • Set Dialog Button[6] = Last created button)
      • Dialog - Create a dialog called Green
      • Set Dialog Button[7] = Last created button)
      • Dialog - Create a dialog called Pink
      • Set Dialog Button[8] = Last created button)
      • Dialog - Create a dialog called Gray
      • Set Dialog Button[9] = Last created button)
      • Dialog - Create a dialog called Light Blue
      • Set Dialog Button[10] = Last created button)
      • Dialog - Create a dialog called Dark Green
      • Set Dialog Button[11] = Last created button)
      • Dialog - Create a dialog called Brown
      • Set Dialog Button[12] = Last created button)


NOW once youve done all that your ready for the next step, which is when you click Button Red, make it give the unit youve selected to red, heres how

Trigger:
  • Give Red
    • Events
      • Dialog - A dialog button is clicked for Dialog
    • Conditions
      • (Clicked DialogButton) = DialogButton[1]
    • Actions
      • Set tempgroup = (Units owned by (Triggering player) matching ((((Matching unit) is selected by (Triggering player)) Equal to True) and (((Matching unit) is A Hero) Not equal to True)))
      • Unit - Change ownership of (triggering unit) to player 1 (Red) and Change color
      • Dialog - Hide Dialog for (Triggering player)
    • Give Blue
      • Events
        • Dialog - A dialog button is clicked for Dialog
      • Conditions
        • (Clicked DialogButton) = DialogButton[2]
      • Actions
        • Set tempgroup = (Units owned by (Triggering player) matching ((((Matching unit) is selected by (Triggering player)) Equal to True) and (((Matching unit) is A Hero) Not equal to True)))
        • Unit - Change ownership of (triggering unit) to player 2 (Blue) and Change color
        • Dialog - Hide Dialog for (Triggering player)
    • Give Teal
      • Events
        • Dialog - A dialog button is clicked for Dialog
      • Conditions
        • (Clicked DialogButton) = DialogButton[3]
      • Actions
        • Set tempgroup = (Units owned by (Triggering player) matching ((((Matching unit) is selected by (Triggering player)) Equal to True) and (((Matching unit) is A Hero) Not equal to True)))
        • Unit - Change ownership of (triggering unit) to player 3 (Teal) and Change color
        • Dialog - Hide Dialog for (Triggering player)
    • Give Purple
      • Events
        • Dialog - A dialog button is clicked for Dialog
      • Conditions
        • (Clicked DialogButton) = DialogButton[4]
      • Actions
        • Set tempgroup = (Units owned by (Triggering player) matching ((((Matching unit) is selected by (Triggering player)) Equal to True) and (((Matching unit) is A Hero) Not equal to True)))
        • Unit - Change ownership of (triggering unit) to player 4 (Purple) and Change color
        • Dialog - Hide Dialog for (Triggering player)
    • Give Yellow
      • Events
        • Dialog - A dialog button is clicked for Dialog
      • Conditions
        • (Clicked DialogButton) = DialogButton[5]
      • Actions
        • Set tempgroup = (Units owned by (Triggering player) matching ((((Matching unit) is selected by (Triggering player)) Equal to True) and (((Matching unit) is A Hero) Not equal to True)))
        • Unit - Change ownership of (triggering unit) to player 5 (Yellow) and Change color
        • Dialog - Hide Dialog for (Triggering player)


Now your wanting to do that with ALL the players that will be-able to join so if its going to be closed or computer then DON'T by ALL means do it for them! (so if the computer is yellow then don't make one for yellow)

ONLY make it for the players THAT will be-able to JOIN! (so if yellow is a 'user' then make one for him REMEMBERING you only have to do it for the 'users'!)

Thanks for reading, enjoy the trigger, post, and rate!

(PS, if you want another way (not dialog way) then just say it via post!)
 

Dirac

22710180
Reaction score
147
Just because you found out how to do it doesn't mean that no one else knows how to
This doesn't qualify as a resource, looks more like a good reply for someone with the issue around the WEHZ forum.
People should read the rules before posting
 

NoobImbaPro

You can change this now in User CP.
Reaction score
60
see some jass systems and then tell us how much big is your "code", and I still don't know what your "system" does
 

TheLegend

New Member
Reaction score
10
ok i read it and...... what is this, what does it do, just change the color of players and units or what man
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Well, it lets you type in -give and a dialog comes up, you click the dialog button 'red' and it allows you to give your unit to Player 1 (red)

I'm don't do jass! jass is evil, Gui is good, jass is evil, gui is good, evil is borring so jass is borring as well, when gui is fun, so gui is fun as well!!!
 

TheLegend

New Member
Reaction score
10
you have to admit that this is useless :) jass makes things a lot easier so learn it fast, gui is the devil and you got tricked XD
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
LOL I aint learning jass :p GUI is the BEAST, jass is evil, gui is good, jass is boring, boring is evil, which means jass is boring and evil, gui is good, gui is also fun, fun is good, which means gui is also fun! :p
 

Dirac

22710180
Reaction score
147
gui is neither fun nor good
jass is neither bad nor boring
This isn't subject to discussion, this is a fact.
You have no say because you don't know how to code in jass
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
Jass is superior to gui for a few key reasons...

It is impossible to not leak in gui
Jass has more functionality than gui
Typing allows you to change things encapasuled to the nth degree much faster

It is inferior for a few key reasons as well...

It is easy to screw up a system with a simple typo that is not a syntax error
It is less user friendly and hard to wrap you head around it if you do use gui and your gui knowledge will hinder your jass coding
It is often harder to read

That said neither are good/bad they are knowledge sets and user preferences
 

luorax

Invasion in Duskwood
Reaction score
67
Don't forget about modularity and (v)JASS systems. My life was so much harder without my custom systems. A whole spell that has dozens of ratios (Attack Damage, Bonus Health, Ability Power, and so on) with AoE damage, stun or slow, a projectile and a custom passive is like 150 lines long, and it handles multiple events, absorbs, damage texts, CC reductions, and so forth. It's just... wonderful.

But doesn't matter, obvious troll is obvious.
 

TheLegend

New Member
Reaction score
10
the point is not to discuss jass or gui but the system itself so pls dont spam... Please do add what your system does and why its better than others, add some images
 

KaerfNomekop

Swim, fishies. Swim through the veil of steel.
Reaction score
613
I don't think it was a troll in the exact sense, just someone who refuses to listen to reason. Trolls know and don't give a ****.

The 8+ triggers could be shrunk into one with a simple For Each Integer loop.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 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

      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