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)
@Chaboi_3000, @Deadpool198, could you help with this?
What is the name of the item?
I don’t think you can make custom items. And if you can, there is either a problem with
- If you actually have friends that are warlocks.
- You did something wrong with the making of the item.
- 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.
I have an idea. You could make warlocks in the thang editor that have team “humans”.
You could add programming. Commands in the hero placeholder and in commandableTypes put “warlock”.
Yea that’s what I did. I used thang editor
Oh. @staff, could you help?
@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.
Nooo. I made it so I can command warlocks.
Show me some screenshots of the items.
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?
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.
No I didn’t make item. I edited boss star iii
oh, has the item been approved yet? (my computer won’t load thang editor)