Search Unity

Creator Kit: Beginner Code

Discussion in 'Getting Started' started by chu-, Apr 30, 2020.

  1. chu-

    chu-

    Joined:
    Apr 28, 2020
    Posts:
    1
    In the second last tutorial called "Customize the health potions", step 2 instructs to create and open a new script file by going to the top menu, go to Beginner Code > Create Item Effect, name it, and then select create. Selecting create does not work for me. What am I doing wrong?

    Also, in step 1 it says "So far, the potions that spawn at game start can’t be used in the player’s inventory. This is because the potions have no specific effects associated with them" They can be used. And there is a script called AddHealthUsageEffect already existing.

     
  2. cybran

    cybran

    Joined:
    Nov 20, 2015
    Posts:
    8
    I have exactly the same issue. Did you find a solution?
    Thanks.
     
    HeavilyCaffeinated likes this.
  3. Strapper1000

    Strapper1000

    Joined:
    Oct 14, 2015
    Posts:
    3
    I have the same problem too. When you select 'create', the script file is not created. WTF...
     
    HeavilyCaffeinated likes this.
  4. Vardenf

    Vardenf

    Joined:
    May 20, 2020
    Posts:
    1
    Same here!
     
    HeavilyCaffeinated likes this.
  5. artdeb

    artdeb

    Joined:
    Apr 14, 2015
    Posts:
    1
    same same
     
    HeavilyCaffeinated likes this.
  6. Martijn-van-der-Spek

    Martijn-van-der-Spek

    Joined:
    Oct 1, 2014
    Posts:
    1
    Same problem here. Did anyone figure it out?
     
    HeavilyCaffeinated likes this.
  7. Caden602

    Caden602

    Joined:
    Feb 27, 2016
    Posts:
    3
    Also having the same problem... Any fixes yet?
     
    HeavilyCaffeinated likes this.
  8. HeavilyCaffeinated

    HeavilyCaffeinated

    Joined:
    Jun 9, 2020
    Posts:
    2
    I'm also having this problem.
     
  9. davidsoriano

    davidsoriano

    Joined:
    Jun 16, 2020
    Posts:
    1
    Same problem too.
     
  10. sneauxwolfe

    sneauxwolfe

    Joined:
    Jun 24, 2020
    Posts:
    2
    Same problem here, too.
     
  11. HeavilyCaffeinated

    HeavilyCaffeinated

    Joined:
    Jun 9, 2020
    Posts:
    2
    I found a link to another forum with the same question, which I've copied below. It seems like the tutorial was written with an error, which makes Create Item Effect unusable.

    Someone on the thread recommends using an included file called "AddHealthUsageEffect", because it has everything we need already written.

    I'm just manually creating the document in the "...Item/Effects" location and copying the preliminary code given in the tutorial. It seems to be working well, but I'll update this if there's any issues.

    --> https://forum.unity.com/threads/customize-the-health-potions-beginner-code-tutorial.887821/

    Update: It worked fine. When it comes to adding the script in the inspector, make sure that you remove the included "AddHealthUsageEffect", which is essentially the file we just created in the tutorial.
     
    Last edited: Jul 8, 2020