Jump to content
  • Advertisement
Sign in to follow this  
Pedro Alves

craft system problem

This topic is 396 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

i can´t put my craft working
the material don´t update in craft widget

MasterItem.h

USTRUCT(BlueprintType)
struct Finventoryslot : public FTableRowBase
{
    GENERATED_BODY()

public:

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TSubclassOf<class AMasterItem>ItemClass;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Amount;

};

"LegendOfArthurCharacter.h

USTRUCT(BlueprintType)
struct FInventoryItem : public FTableRowBase
{
    GENERATED_BODY()

public:

    /*FInventoryItem() {
    Name = FText::FromString("Item");
    Action = FText::FromString("Use");
    Description = FText::FromString("Please Enter a description for this item");
    Value = 10;
    }
    */
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FName ItemID;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Name;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Action;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        int32 Value;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        UTexture2D * thumbnail;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FText Description;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Category Category;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        Rank Ranks;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool canbeStack;

    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        TArray<Finventoryslot>Recepie;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        bool bCanBeUsed;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        EnumSlots EnumSlots;
    UPROPERTY(EditAnywhere, BlueprintReadWrite)
        FString internalName;
};

i put the blueprints and widgets in googledrive

i using this tuturial

#t=9.483922
https://drive.google.com/open?id=0B11O6ZMrJmMORkw1bWRQZmd2RFk
what i doing wrong

Share this post


Link to post
Share on other sites
Advertisement

i find the soluction

i make a newbie mistake

i forget the connect the the foreachloop with breake in array element i forget the connect

the array element to current amount and requeried amount

Edited by Landi20

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!