Bug for custom items?

    friends = hero.findFriends()
    for friend in friends:
        if friend.type == "warlock":
            if (friend.canCast("summon-undead")):
                hero.command(friend, "cast", "summon-undead")
            if (friend.canCast("raise-dead")):
                hero.command(friend, "cast", "raise-dead")
            else:
                enemies = hero.findEnemies()
            enemy = friend.findNearest(enemies)
            if enemy:
                hero.command(friend, "attack", enemy)
    
    I made a custom item which lets me command and summon warlocks. Yet, I get a type error. I used the boss star 3. Cast is allowed for commands. Please help!
!![image|666x500](upload://gasjDYrClhNuUewGfkLL6RQSpA8.jpeg)
1 Like

@Chaboi_3000, @Deadpool198, could you help with this?

1 Like

What is the name of the item?

1 Like

I don’t think you can make custom items. And if you can, there is either a problem with

  1. If you actually have friends that are warlocks.
  2. You did something wrong with the making of the item.
  3. There is something wrong with your code.
    EDIT:
    Also the problem might be that warlocks’s aren’t a type you can command with boss stars.
2 Likes

I have an idea. You could make warlocks in the thang editor that have team “humans”.

1 Like

You could add programming. Commands in the hero placeholder and in commandableTypes put “warlock”.

1 Like

Yea that’s what I did. I used thang editor

Oh. @staff, could you help?

1 Like

@nick please help please

Yes I can. I made a custom item with thang editor and I am using it. I summoned the warlocks. I can command them too.

Magic star. I made it with thang editor

Yeah, but probably the reason is your boss star.

1 Like

Nooo. I made it so I can command warlocks.

Show me some screenshots of the items.

1 Like

OK! Later, as I can’t now

The patch is still pending, the item has not been approved yet.
Try mentions moderators so they can approve it.
How did you make the item?

1 Like

I know. Thang editor. I made it for myself for fun. I like playing with it.

How did you make the item using thang editor, there is not make item button.

2 Likes

No I didn’t make item. I edited boss star iii

1 Like

oh, has the item been approved yet? (my computer won’t load thang editor)

2 Likes