STATS - Making an RPG in Unity (E09)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 พ.ย. 2024

ความคิดเห็น • 216

  • @giovannicescutti1751
    @giovannicescutti1751 7 ปีที่แล้ว +241

    Brackeys = God of Unity Tutorials

    • @dnetne5508
      @dnetne5508 7 ปีที่แล้ว +4

      not even close haha

    • @elvisdurmishi9893
      @elvisdurmishi9893 7 ปีที่แล้ว +1

      sebastian has helped me 10X more

    • @Brackeys
      @Brackeys  7 ปีที่แล้ว +25

      He has helped me waaay more too ;)

    • @giovannicescutti1718
      @giovannicescutti1718 7 ปีที่แล้ว +3

      Sebastian is also one of my favourite youtuber. I'm only saying that Brackeys is a god. Sebastian also! XD

    • @aydinkaveh8839
      @aydinkaveh8839 7 ปีที่แล้ว

      Brakeys replyed to you right?? that was Sofia

  • @no-relic
    @no-relic 7 ปีที่แล้ว +5

    I already got a small head start on some of this, but I'd never even considered making a stat class. This way of handling stats is way better than the ways I'd imagined doing it.

  • @unnamer345
    @unnamer345 7 ปีที่แล้ว +59

    Some tip:
    you can change Debug.Log text color
    Debug.Log ("Text");
    Example
    Debug.Log ("Actions completed");

    • @CodingWithUnity
      @CodingWithUnity 6 ปีที่แล้ว +1

      Somehting like this :)
      hastebin.com/edoxosozos.cs

    • @neonmoondust7518
      @neonmoondust7518 4 ปีที่แล้ว

      Hell yeah this is so useful i definetely gonna make a method for this implementation to make it actually fast to write, if there are no other on internet yet which i doubt

    • @Grigaror
      @Grigaror ปีที่แล้ว

      :|

    • @luluskuy
      @luluskuy 9 หลายเดือนก่อน

      @@neonmoondust7518 is it possible?

  • @berkalkan3382
    @berkalkan3382 3 ปีที่แล้ว +1

    man this guy has tutorials about every topic

  • @rustyryan4473
    @rustyryan4473 5 ปีที่แล้ว +3

    You make the best tutorials, hands down. I have learned a ton from you already. I am even using a lot of the C#/OOP concepts you've covered at my job. Thanks a ton!

  • @wombatZ
    @wombatZ 7 ปีที่แล้ว +56

    Most helpful tutorials on youtube

    • @joeyarchie8295
      @joeyarchie8295 3 ปีที่แล้ว

      A trick : watch movies on KaldroStream. I've been using them for watching a lot of movies recently.

    • @leonidasdominic603
      @leonidasdominic603 3 ปีที่แล้ว

      @Joey Archie definitely, have been using Kaldrostream for since december myself =)

    • @zaynemaxwell5169
      @zaynemaxwell5169 3 ปีที่แล้ว

      @Joey Archie Yea, I have been watching on KaldroStream for years myself =)

    • @judegibson3501
      @judegibson3501 3 ปีที่แล้ว

      @Joey Archie Yea, have been watching on kaldroStream for years myself =)

  • @harryfuge3486
    @harryfuge3486 3 ปีที่แล้ว +14

    I would love to see this implemented with Scriptable Objects, making the project more modular

    • @TragicSpider
      @TragicSpider ปีที่แล้ว +1

      he stopped making videos :(

  • @Thrillin_Chillin_Drillin
    @Thrillin_Chillin_Drillin 3 ปีที่แล้ว +4

    Speed (taking turn order) should be done in priority bars that all characters have
    Bar = character speed stat over highest speed value in battle + 10 × level (or other numbers)

  • @Removekebab-ino
    @Removekebab-ino 7 ปีที่แล้ว +2

    Best tutorial on youtube because it's -free- explaining much.

  • @andreutormos7210
    @andreutormos7210 7 ปีที่แล้ว +3

    Episode 9 let's go! Keep up the good work, Brackeys!

  • @ArthurBurgan
    @ArthurBurgan 4 ปีที่แล้ว +12

    For anyone who pressed "T" and nothing happened - I forgot to remove the Update method in my PlayerStats script. Maybe it will help someone.

    • @lyejiajun
      @lyejiajun 4 ปีที่แล้ว

      OMG Thank you SO MUCH! I was trying to debug this for so long. Why is it that we need to remove the Update method in the PlayerStats script?

    • @MaeqMa
      @MaeqMa 3 ปีที่แล้ว

      Also use Update instead of update :(

    • @haemogoblin7006
      @haemogoblin7006 3 ปีที่แล้ว

      @@lyejiajun okaaay so i may be tooo late but i'll post just in case anyone who stumbles across this issue again... The Update in PlayerStats overrides the one in CharacterStats and hence it results in the former running while the latter doesn't and removing the overriding method, that is the one in PlayerStats, the one in the base, that is CharacterStats, runs without fail!
      Do note that i meant to use the logical sense of overriding and not in a technical way cus i'm not sure if we're indeed overriding in the child class (since we do not use the necessary keywords but we r in fact doing something very similar as we r inheriting from MonoBehavior so idk tbh) so for conceptual understanding i hope this helps...

  • @skltfz4997
    @skltfz4997 6 ปีที่แล้ว

    i love the elegant and tidy of programming style

  • @sgyffysgyffy4736
    @sgyffysgyffy4736 7 ปีที่แล้ว +3

    Thank you for another great tutorial! Would love to see how you plan these projects!

  • @PiotrKarbowski
    @PiotrKarbowski 7 ปีที่แล้ว +6

    Brackeys are you really creating the code so quickly like on those videos ? I'm well impressed

  • @sebastianecheverry4458
    @sebastianecheverry4458 8 หลายเดือนก่อน

    This tutorial is Insane, thanks for it.

  • @lycagos1278
    @lycagos1278 6 ปีที่แล้ว +1

    someone should answer if this channel is the best unity tutorial channel in youTube :O
    extremely useful,
    Brackey make a series about programming

    • @trod146
      @trod146 3 ปีที่แล้ว +1

      It's decent yeah but definitely not the best.

  • @StasisTV
    @StasisTV 7 ปีที่แล้ว +6

    I'm still re-watching Sebastian's tutorial trying to model my character

  • @vexingcoder3437
    @vexingcoder3437 5 ปีที่แล้ว

    These basics are the foundation to game making and i was shocked that you can do something like this. damn thanks for slapping it right to my face.

  • @sartr593
    @sartr593 7 ปีที่แล้ว

    Awesome tutorial, well explained and easy to follow

  • @AgeOfAsparagus
    @AgeOfAsparagus 7 ปีที่แล้ว

    Wonderful series. Heads up that your playlist is out of order with Sebastian's latest. Thank you!

  • @stephenferrara4926
    @stephenferrara4926 6 ปีที่แล้ว +7

    File structure question. At the start of this tutorial you have an Objects folder under Item with your default and non default separated. In Sebastian's previous video this organization is not complete, so there seems to be a step missing in this video. Or I am missing something. Any help?

    • @davidfu8174
      @davidfu8174 6 ปีที่แล้ว +1

      Experiencing the same thing. I think we just need to organize it like he does.

    • @dinodics4442
      @dinodics4442 6 ปีที่แล้ว

      I have the same problem.

    • @michaelday5605
      @michaelday5605 5 ปีที่แล้ว

      I noticed that the folder had been reorganized too. I actually had to go back to the previous episode and look at the final few frames that show the Project window to confirm this.

  • @FrostedNetwork
    @FrostedNetwork 5 ปีที่แล้ว +1

    This was actually really helpful thank you!

  • @victorlee98
    @victorlee98 5 ปีที่แล้ว

    Thank you for tutorial, I am searching for it, this is very helpful for me

  • @sarthaktyagi2701
    @sarthaktyagi2701 7 ปีที่แล้ว

    Just another great video

  • @CanalPapaco
    @CanalPapaco 5 ปีที่แล้ว +7

    This looks like a bad idea. Every time you unequip an item, the game will loop through the list, then recreate the list. If you search for some benchmarks regarding Lists, Stacks and Queue, you'll see that it takes sooo much time to remove something from the start of the list. You could have a currentValue variable and then just add and subtract from it

    • @BennyOD
      @BennyOD 5 ปีที่แล้ว

      Do you have a more optimised version to do this? I'm still fairly new to scripting so wouldn't know how to do this.

    • @LevelUpWithLettin
      @LevelUpWithLettin 5 ปีที่แล้ว +3

      @@BennyOD I did this by altering the Stat script. So these changes mean when we get the value of a stat it simply reads an integer value however we still retain the detailed information in our list so we can refer to it as needed (I was planning to create a character stat screen and show all the modifiers when hovering over the stat).
      Move the finalValue out of the GetValue() method and make it private.
      In the AddModifier and RemoveModifier methods, add these lines respectively
      finalValue += modifier;
      finalValue -= modifier;
      This presents a new bug where finalValue isn't initiated. I fixed this by making a new boolean called statInitialised and default it to false
      In the getValue() method add an if statement to check if statInitialised == false
      In here add a new method called RecalculateModifiers (as might come in useful in future)
      public void RecalculateModifiers()
      {
      finalValue = baseValue;
      modifiers.ForEach(x => finalValue += x);
      statInitialised = true;
      }
      Here's the GetValue() for reference:
      public int GetValue()
      {
      if (statInitialised == false)
      {
      RecalculateModifiers();
      }
      return finalValue;
      }

    • @BennyOD
      @BennyOD 5 ปีที่แล้ว +1

      @@LevelUpWithLettin thanks for the reply ! So this means that when you first load the game , it'll initialise the stats once but subsequently it'll only update the final value based on the use of AddModifier and RemoveModifier methods correct ?

    • @LevelUpWithLettin
      @LevelUpWithLettin 5 ปีที่แล้ว +2

      @@BennyOD That's right, and you can just call the RecalculateModifiers method if you want to recalculate them for some reason, you could also set statInitialised to false which will do the same thing on next GetValue() call with the code as it is at the moment.

    • @draconinteractive
      @draconinteractive 4 ปีที่แล้ว +3

      Its a point worth making, however its important to remember that in this case the list can never be more than 10 items (2x5 equipment piece modifiers). The creation of a 10 integer list is beyond negligible, and this will only ever happen when something is equipped. Given the game design so far, equipping items is max 1 p/frame.
      And even once you expand with magicATK, speed, etc, etc, this list is never going to get to a size where this actually matters. In this case, I think ease of use is more important than efficiency. The code is easy to read, and to modify. That also has value.

  • @Alluvian567
    @Alluvian567 5 ปีที่แล้ว +1

    I really wish you would have directly linked to the video you referenced and not just his channel.

  • @hom-sha-bom
    @hom-sha-bom 6 ปีที่แล้ว +4

    How would you handle stats that rely on other stats? Like if you had a Strength stat that also affected Damage?

    • @ahinssu617
      @ahinssu617 3 ปีที่แล้ว

      strenth * damage or sum

  • @jakubpukovec7755
    @jakubpukovec7755 6 ปีที่แล้ว

    Excellent tutorial! Thank you

  • @mefju17
    @mefju17 7 ปีที่แล้ว

    Always smiling.. inspiring :) Keep awesome work :)

  • @TheSintragoss
    @TheSintragoss 7 ปีที่แล้ว +6

    Nice

  • @ilmumahalgwbagi2383
    @ilmumahalgwbagi2383 7 ปีที่แล้ว

    awesome tutorial

  • @MrRedpearl
    @MrRedpearl 4 ปีที่แล้ว

    You're the man!

  • @JeroMono
    @JeroMono 4 ปีที่แล้ว +1

    Hello, the episode E08 of this series isn't available, can you check if you can reupload it?

  • @Tidalley
    @Tidalley 6 ปีที่แล้ว +1

    How'd you get the current health property to show up in the inspector?

  • @alphachicken3225
    @alphachicken3225 7 ปีที่แล้ว +5

    Cool video!
    Can you please make a series of videos sometime on the basics of a survival game like Unturned?

  • @Inivican
    @Inivican 6 ปีที่แล้ว +1

    Somehow when I did the last video I totally messed up my scene so I downloaded the finished end-of-video project but when loading that I receive a warning about versions and then I found that all the references are gone so I get a lot of errors about things being missing. I could fix it if I could see all the references.

  • @ancientgear7192
    @ancientgear7192 4 ปีที่แล้ว

    Nice tutorial.

  • @reaganation6000
    @reaganation6000 3 ปีที่แล้ว

    After I learn c++ this feels much easier

  • @waveflyer4581
    @waveflyer4581 4 ปีที่แล้ว

    Extreme helpfull tutorial👌

  • @alexc8453
    @alexc8453 3 ปีที่แล้ว

    4:52 when someone eats my last sweet without asking

  • @Reaper_20230
    @Reaper_20230 6 ปีที่แล้ว +1

    Thanks for the tutorial, but what if I wanted the output damage from both the player and enemy to be based on an algorithm?
    E.g.;
    X=(Y/Z)20
    X: Damage output
    Y: Player/Enemy strength
    Z: Enemy/Player defence

    • @Kathayne636
      @Kathayne636 5 ปีที่แล้ว

      Do it just like that. FinalDamage = (Playerstrength/Enemydefense)*20

  • @xXMasterTrunksXx
    @xXMasterTrunksXx 6 ปีที่แล้ว +2

    What about setting different class players, warrior mage rogue etc, that change your stats based on the class of player?

    • @draconinteractive
      @draconinteractive 4 ปีที่แล้ว +1

      Late reply, but often instead of changing the stats going in, you change how the stats affect things.
      Simple example, Warriors get more out of armour than mages (training, whatever). So, when we do our damage -= armour, we could multiply that by a class advantage. damage -= (armour * classArmourModifier). If that was a warrior, it might be 2, so you block twice as much damage. If it was a mage, it might be 0.5f, so you take twice as much.
      Then, the player chooses items for their character that suit them, making the most of the 'advantage'

    • @xXMasterTrunksXx
      @xXMasterTrunksXx 4 ปีที่แล้ว

      @@draconinteractive thank you.. That makes a lot of sense

  • @badbuilding395
    @badbuilding395 7 ปีที่แล้ว

    You should do a tutorial on passing variables to another scene

    • @konanas7
      @konanas7 7 ปีที่แล้ว +1

      use static or dontdestroyonload

  • @jothammichael7135
    @jothammichael7135 7 ปีที่แล้ว +1

    how did you learn?

  • @joebevan160
    @joebevan160 7 ปีที่แล้ว

    Awwee yee knew vid. Keep up the great work

    • @abacdc7089
      @abacdc7089 4 ปีที่แล้ว

      im questioning how some one can talk like this but it is very cool

  • @manou1409
    @manou1409 4 ปีที่แล้ว

    nice one

  • @alirezamaghsoomi882
    @alirezamaghsoomi882 6 ปีที่แล้ว

    Would you make a video on how to save the stats and items of this tutorial as PlayerPref or so? It's really needy on this nice RPG tut

  • @misterroo5672
    @misterroo5672 7 ปีที่แล้ว

    awesome!

  • @tequila5915
    @tequila5915 6 ปีที่แล้ว +1

    but when i unequip equipments the modifiers just keep increasing
    Brackeys fix it please :(

    • @MrKasperskyMan
      @MrKasperskyMan 6 ปีที่แล้ว +2

      You probably have "armor.AddModifier(oldItem.armorModifier);" instead of "armor.RemoveModifier(oldItem.armorModifier);" in the "if (oldItem != null)" statement body

  • @kingkong99sohai
    @kingkong99sohai 7 ปีที่แล้ว

    Thankyou Very Much !!!

  • @mrmacedon
    @mrmacedon 7 ปีที่แล้ว +2

    Bro you sound like HeartBeast from Game maker tutorials

  • @Laxhoop
    @Laxhoop 5 ปีที่แล้ว +1

    O.K., uh... My armor is just not working. No matter what I do, either pressing T does literally nothing, or the console and inspector both say I’ve lost 10 health, even if I have full armor on.
    I cannot for the life of me figure out what is wrong.

  • @y.a5427
    @y.a5427 3 ปีที่แล้ว

    How did the armor to go on the rpg avatar

  • @davidfu8174
    @davidfu8174 6 ปีที่แล้ว +1

    Sebastian's asset organization from when he ended his video looks different from your at the start of this video. He didn't have the Objects Folder. Can you help us bridge the gap??

  • @lorenzvo5284
    @lorenzvo5284 7 ปีที่แล้ว +3

    actually wouldn't Mathf.Max(damage,0) be better than Mathf.Clamp(damage,0,int.MaxValue) in this case? ._.

    • @lorenzvo5284
      @lorenzvo5284 7 ปีที่แล้ว

      Not that It makes a difference but it feels better :D

    • @edgunther8136
      @edgunther8136 6 ปีที่แล้ว +1

      I was thinking it would be better just to return out of the function if the damage - AC was

  • @veteranxt4481
    @veteranxt4481 6 ปีที่แล้ว

    How to add modifers to item itself. lets take that increasses item value, maxStacksize or Damage modifer to its weapon.
    Not just player.

  • @beauvance11
    @beauvance11 7 ปีที่แล้ว

    Brackeys, i input my max health and current health the same way but it doesnt show my current health in debug mode when i press play.....how can i fix this? thanks for being awesome and super organized!!

  • @JulioCsw
    @JulioCsw 7 ปีที่แล้ว

    you are the best!

  • @NoctugasArts
    @NoctugasArts 7 ปีที่แล้ว

    Amazing! :D

  • @BloodKillerr
    @BloodKillerr 5 ปีที่แล้ว

    Hi. I have a problem. How can i get, for example, player max and current health? When i do save&load system i want to save and load these two values. But how can i get them to certain script ?

  • @adhityarisyad5707
    @adhityarisyad5707 4 ปีที่แล้ว +1

    If somebody can help me ill be forever grateful.
    So i have a OnTriggerEnter function in another script called Movement (control player movement) , and i put inside it
    if (other.tag == "damage")
    {
    player.GetComponent().TakeDamage(10);
    }
    the idea is to have an object (with "damage" tag) that deals damage if you get close enough.
    so i checked the CharacterStats script, and the TakeDamage function is correctly referenced.
    But when i play in unity, i get an error message
    *NullReferenceException: Object reference not set to an instance of an object*
    help?

    • @chessersstudios1778
      @chessersstudios1778 3 ปีที่แล้ว

      add a debug log inside the tag if, if that triggers then u have a problem with the player var. Have you declared it? Best to do inside that if statement other.gameObject.GetComponent.... Also use compare tag coz its a bit faster

  • @AllisterVinris
    @AllisterVinris 3 ปีที่แล้ว

    Why does his Visual Studio color the class names ? Mine just stay white .How do I get it to do the same ?

  • @CleosetricVlyers
    @CleosetricVlyers 5 ปีที่แล้ว

    Where i can find tutorial to save and load data from this scriptable object please need help

  • @niklaskras5498
    @niklaskras5498 4 ปีที่แล้ว

    guys type in visual studio "prop" or "propg" and press tab twice. thank me later^^

  • @ornithorink
    @ornithorink 6 ปีที่แล้ว

    Has E08 been taken down by TH-cam ?

  • @johnhalterman8255
    @johnhalterman8255 4 ปีที่แล้ว

    How can I make a spawner/cloner for the enemy for my game?

  • @Robsfund
    @Robsfund 6 ปีที่แล้ว

    What hotkey encapsulates already written lines of code in { } after an if statement?

    • @blackmagenate
      @blackmagenate 6 ปีที่แล้ว

      Like the curly braces automatically appearing? That is the autocomplete feature of Visual Studio (his code editor) turned on.

  • @nutboi281
    @nutboi281 7 ปีที่แล้ว

    i need help for this, when my character equips the armor it adds the modifier, but when i wear off the armor the modifier is not there

    • @not_kode_kun
      @not_kode_kun 5 ปีที่แล้ว +2

      thats how armor works my friend. If you don't have it on anymore it doesn't work.

  • @jesperwahl9162
    @jesperwahl9162 6 ปีที่แล้ว +1

    Im getting warnings that says that JobTempAlloc has allocations that are more than 4 frames old and that there is a leak. Could not find any info on how to resolve this, curious to see if anyone else have the same problem

    • @nidhalmesselmani7485
      @nidhalmesselmani7485 6 ปีที่แล้ว

      same here

    • @UrBoyBlueJake
      @UrBoyBlueJake 5 ปีที่แล้ว

      you may have a -= in front of the clamp, so make sure its just =
      6:02 into the vid pause it and take a look.

    • @joshuaennis2464
      @joshuaennis2464 5 ปีที่แล้ว

      me too but I haven't gotten it in a while so fingers crossed

  • @ruhaanchoudhary1531
    @ruhaanchoudhary1531 7 ปีที่แล้ว

    Hi can u plz make a tutorial on how to make a continue scene in unity for making the game

  • @fernandolopes3545
    @fernandolopes3545 6 ปีที่แล้ว

    Where is video number 08?

  • @MAMFMAHMOUD
    @MAMFMAHMOUD 7 ปีที่แล้ว

    Hi Asbjorn Thirslund(i Hope i wrote your name correctly) after finishing this series can you make another series on flight simulator
    or flight combat simulator because nobody in youtube made a series of this , some of them made a video or two of this
    but still not enough and they are using unity script assets without teaching us any of coding or scripting , so can you
    make a series on this or at least can you make a live stream on this, and thank you

  • @aerop6395
    @aerop6395 7 ปีที่แล้ว +1

    Brackeys could you eventually add weapons to this tutorial series such as guns or melee

  • @RM.-_-.
    @RM.-_-. 4 ปีที่แล้ว

    how do i ad str dex int wiz con stats

  • @ermalraka5106
    @ermalraka5106 3 ปีที่แล้ว

    if anyone sees this pls help...
    when I pick up my helmet then my platelegs and then my platebody i can only pick them how I got them like: if I got first the helmet I can't pick my pants I first I have to equip my helmet and then the pants

  • @tarikhusny7116
    @tarikhusny7116 6 ปีที่แล้ว

    I have a question,
    There are 2 item for helmet,
    if we equip one than try to equip other, it swaps on inventory,
    modifiers size is rising,
    character equips only 1 but modifiers get values.
    Great tutorials, better than a paid courses :)

    • @NOTAHOWTOCHANNEL
      @NOTAHOWTOCHANNEL 2 ปีที่แล้ว

      Did you find the solution i have the same problem

  • @hariikrishnan
    @hariikrishnan 7 ปีที่แล้ว

    can you bring back the old intro

  • @chihowoo3481
    @chihowoo3481 6 ปีที่แล้ว

    why the folder of items is different to yours? I didn't found Object and other things there.

    • @chihowoo3481
      @chihowoo3481 6 ปีที่แล้ว

      I found that Sebastian in E08 and you used different way to organize in Assets. A little bit trouble take some time to solve it.

    • @chihowoo3481
      @chihowoo3481 6 ปีที่แล้ว

      That isn't too hard to figure it out. Just create new folders and move files int to it.

  • @junelguevarra956
    @junelguevarra956 2 ปีที่แล้ว

    i have errors in EquipmentManager.Instance

  • @totallydillion
    @totallydillion 7 ปีที่แล้ว

    I am only 2:38 in the video so I'm sorry if he changes it,
    But why isn't baseValue public? You're going to edit it anyway?

  • @ruvimtitenok7629
    @ruvimtitenok7629 7 ปีที่แล้ว

    can you please make a video on what "public" means and "public class" and "public void" and everything else that has public in it
    Please

    • @konanas7
      @konanas7 7 ปีที่แล้ว

      It means other classes can use it

    • @Jamie-tx7pn
      @Jamie-tx7pn 4 ปีที่แล้ว

      I hope you decided to actually learn C# somewhere along these 2 years

  • @MassimoRough
    @MassimoRough 7 ปีที่แล้ว

    Sort of Decorator design pattern, right?

  • @ani-gamer320
    @ani-gamer320 3 ปีที่แล้ว

    How to save these all items in inventory? #help

  • @daxior3377
    @daxior3377 4 ปีที่แล้ว

    Quick bugfix - Equipment manager removes twice same modifier since equip function alone and unequip one calls olditem reference, simply since equip function realising equip logic nullify olditem in delegate call.

    • @chairstuff545
      @chairstuff545 4 ปีที่แล้ว

      ??

    • @TheABBeachBum
      @TheABBeachBum 3 ปีที่แล้ว

      @@chairstuff545 realize this is a year old but for anyone else looking at this tutorial... basically when an item is equipped and unequipped it invokes a callback for each. Your equip method already calls unequipped so you do 2x callbacks. If you set the equip to callback (new item, null) and the unequip callback (null, old item) it will only remove and add once for each item

    • @stephenq24
      @stephenq24 3 ปีที่แล้ว

      @@TheABBeachBum Have you confirmed that this works? When I implemented this change, what I noticed is that modifiers actually were not being removed from the character. I was able to stack 35 modifiers of the same type in one slot. Make the change in your code and give it a go. You should notice that as you add and remove items, the modifier of the previous item does not get removed.

  • @jaredbraun5096
    @jaredbraun5096 7 ปีที่แล้ว

    With in 30 Mins!

  • @MASATOSHIP_Official
    @MASATOSHIP_Official 3 ปีที่แล้ว

    pretty complex if I tried to use it on FPS.

  • @phoenix161
    @phoenix161 5 ปีที่แล้ว

    When I add the Player Stats script to the player, whenever I press "T", nothing happens. But when I put add the Character Stats Script to the player and do the same thing, my player will take damage. I've gone over the script like 10 times and don't see a difference between the tutorials and mine. Am I missing something or not doing something?

    • @cryora
      @cryora 5 ปีที่แล้ว

      Is your PlayerStats class inheriting CharacterStats or MonoBehavior?

    • @ArthurBurgan
      @ArthurBurgan 4 ปีที่แล้ว

      I had the same problem and the reason was that I didn't remove the Update method in my Player Stats script.

  • @youngengineering2308
    @youngengineering2308 7 ปีที่แล้ว +1

    Can you pls start series for multiplayer fps game in ANDROID plzzzzz

  • @extrano_desesperado
    @extrano_desesperado 5 ปีที่แล้ว

    wait, it's seem like armor is not affects on the damage or what?)

  • @Marwan.Ebrahim
    @Marwan.Ebrahim 7 ปีที่แล้ว

    Brackeys
    can you help me
    when i tried to write if statement VS said you should use C#7 or greater
    then i searched on google how to change it
    but always i get that error when i went to the project settings
    "An error occurred trying to load the page.
    Could not load file or assembly 'Microsoft.VSDesigner, Version=15.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified."
    i hope you can know how can i solve it
    i.imgur.com/fYtx3zr.png

  • @KoumoriDragoon
    @KoumoriDragoon 7 ปีที่แล้ว

    Create a tutorial on seting up a Main Menu or HUD, the new unity ui always confuses me

  • @rad-man
    @rad-man 7 ปีที่แล้ว

    AWEEESOOOME! :)

  • @Authoravarndal
    @Authoravarndal 7 ปีที่แล้ว

    You can use the "change stats script" for every object in unity the player can add right? I'm working on a 2D RPG game project, and was just wondering, if you could use some of the parts in this series of tutorials, for those things? :)
    Hope you understand the question. And thank you for being the greatest game dev teaching channel on youtube!

  • @ImpactedWhisper
    @ImpactedWhisper 7 ปีที่แล้ว

    Bracky why is Epi 10 -11 listed as private videos? :O we're not able to complete the tutorials! :P

    • @TAM-ni1zn
      @TAM-ni1zn 7 ปีที่แล้ว

      Unless I am mistaken, the private videos are being uploaded/processed, so they should be up soon!

    • @ImpactedWhisper
      @ImpactedWhisper 7 ปีที่แล้ว +1

      Ahhh awesome! Thanks for the information =)

  • @johnmarkrodilla6027
    @johnmarkrodilla6027 6 ปีที่แล้ว

    hey brackeys can you please make a joystick for this? please?

    • @Theppo101
      @Theppo101 6 ปีที่แล้ว

      Ah this one should really not be too hard to help you with, there are plenty of references to that online and for the most basic buttons, you go under Edit -> Project Settings -> Input and set the keys.
      I don't think the chances are they'll show joystick features because this is not the type of game to really incorporate that.
      But Unity makes it really easy so you're in luck.

  • @vainiusgames2709
    @vainiusgames2709 5 ปีที่แล้ว

    Can someone tell me how to do armor when i have minDmg and MaxDmg and I use Random.Range(minDmg,maxDmg)?

    • @somerandom7998
      @somerandom7998 4 ปีที่แล้ว

      (If you still don't have solution)
      Maybe create something like "blockingdmg" and "actualdmg" and in actualdmg subtract Random.Range with/by(sorry I don't know with) blockingdmg and when difference is

    • @Jamie-tx7pn
      @Jamie-tx7pn 4 ปีที่แล้ว

      Break it down.
      1) Get a number from a range of numbers.
      2) Assign the result from the range to a variable.
      3) Do defense calculations on the variable.
      4) Subtract health from final value.
      Does that help? It's always best if you come up with your own solution. If you just insert some code that you don't understand or don't try to understand, you'll be stuck in that copy-paste rut forever. (And at that point, you may as well just pay someone else to make the game for you!)

  • @polymorphine_7301
    @polymorphine_7301 6 ปีที่แล้ว

    i know you never get answers here but pls help with this - Scripts/Stats/PlayerStats.cs(36,3): error CS0103: The name `PlayerManager' does not exist in the current context

    • @Theppo101
      @Theppo101 6 ปีที่แล้ว

      You're trying to reference the PlayerManager script inside the PlayerStats script.
      I'm assuming Visual Studio autocorrected it for you and you didn't mean to link those two scripts somehow.
      In case you did want to link them, you would have to instantiate the PlayerManager script so the script knows what you're referencing.
      It says right there the error is on line 36 of PlayerStats.
      Learning to read debug errors will really help.

    • @DJLKM1
      @DJLKM1 6 ปีที่แล้ว

      As Theppo said, you need to add a referance to the PlayerManager script inside your PlayerStats script. Add "PlayerManager playerManager;" under your class declaration "public class PlayerStats : CharacterStats {.. ".

  • @antimeme5545
    @antimeme5545 4 ปีที่แล้ว

    "but currently the items have no effect on gameplay"
    weird how that's what most paid items are in mmorpgs

    • @ClassicMushroom
      @ClassicMushroom 4 ปีที่แล้ว

      Anti Meme but that’s good, that makes the game not pay to win.

  • @2salty270
    @2salty270 7 ปีที่แล้ว +1

    Hey Brackeys... I have an idea for a new series that I will be oso interesse in watching because I don't find any good on youtube.... Can you PLEASE start a Fighting Game Tutorial or anyone in the commentscan recommend me 1?

    • @mike_o7874
      @mike_o7874 7 ปีที่แล้ว

      fighting games are easy to made
      dmg health works the same as every where
      the only diffrence is the combar system
      with is different in every game.
      you can make it either that the attack make or check in a distance for collision (by placing collider on say the hands)
      and give every hitted enemy the dmg or either set target and when you make attack if distance is close send dmg to target
      probably the first one is the right one

  • @NovaPodcast
    @NovaPodcast 7 ปีที่แล้ว

    Your videos are just awesome :)
    Say I have a question I want to do a farm management system, I block on the ground when I want to return the land to plant some seeds I can not change the soil, would you have some tracks? Possible examples.?