Game Designer? Programmer? AddOn Developer? Or just serious about your game project? No matter what – our “Complete Guides” will help you make better games using Unity, uMMORPG3d and our AddOns.
The SimpleSummon AddOn requires the NuCore Version 1.15 or higher. First install that or a newer version of NuCore. Next import this AddOn package. Next locate the Resources folder in this AddOns folder and move all Items therein in the corresponding Resources -> Items folder of your project.
Now locate the Network Manager in your scene and check its inspector. Add to its “Registered Spawnable Prefabs” list the “Bandit Minion” and “Skeleton Minion” prefabs from this AddOns prefabs folder.
Now add the two example items “Mercenary Contract” and “Summon Seketon Book” to a NPC shop or a loot drop in your scene to test them. Run your project, acquire those items and use them in order to test!
This AddOn allows players to summon/hire Minions that will fight at their side for a limited period of time. You can use this AddOn to simulate Mercenaries (like found in Diablo for example), sidekicks or hirelings. But of course this AddOn can also be used to add a Necromancer or Beastmaster class to your game.
- Minions are hired/summoned via Item usage
- Minions behave like a mixture of Monsters and Pets
- Minions defend their owner, auto attack and move randomly, they also follow
- Minions stay for a limited time period and then die automatically
- When their Master dies/logs out, all Minions die automatically
- Players can summon any amount of Minions, up to a technical maximum
- When the summon maximum is reached the usage of summon items is disabled
- Minions can be summoned at a preset level, this allows weaker/stronger Minions
- Minions themselves do not trigger aggro
- A future update will add hiring/summoning Minions via skill usage as well.
- Players cannot force kill (aka: force un-summon) their Minions!
In order to add a new summonable Minion to your game, you first have to duplicate one of the prefabs in this AddOns prefab folder. It is not possible to use a regular Monster or Pet. Then edit all it’s values in the inspector. You will see that the stats of a Minion are a mix between a Monster and a Pet. Simply duplicate one of the example prefabs that ship with this AddOn:
It is very easy to edit, just a few things to keep in mind:
- You do not set the summoning duration in the Minion itself, instead its on the item (explained below).
- You can edit the DefendOwner and AutoAttack options just like a pet, but the player won’t be able to actively toggle these commands while a Minion is summoned. This means you create a Minion for specialized uses instead.
- Minions have levels but do not gain experience. This allows you to create Minions of varying strength, it also enables you to summon Minions at different levels. You can never summon a Minion at a higher level than the one you stated in the Minions Inspector.
- Don’t forget to add new Minions to your Network Manager registered spawnable prefabs.
Creating Summon Items
Right now, its only possible to summon Minions via Item use, a later version will add summoning via Skill use as well. You can combine the item stats with any other stats like “Usage Destroy” or “Usage Mana”. Now lets go through all options one by one:
- Summon Active – Only activate if this is a summon item. De-active this option for all other types of items in your game to prevent unexpected results.
- Summon Minion – Choose one of the Minion prefabs you created beforehand. Only choose a prefab of the Minion type, do not use any other object or it won’t work.
- Summon Amount – Set any amount up to the technical maximum. This maximum is shared between all Minions (whatever type they are) a Player has summoned at the same time.
- Summon Duration – This is the duration in seconds. After that time span the Minion will die automatically. Minions also die when their Master (player) dies or when you logout of the game.
- Summon Level – The level that Minion is summoned at. This is auto-capped to the amount of levels you create in your Minion prefabs inspector (so if you state 3 here, but your prefab has only level 1, any summoned Minion will be of level 1 instead.
There is a technical maximum of how many Minions each player in your game can summon at the same time. You can edit it in the Constants file of this AddOn, although its not recommended to change that. This has been done because too many Minions will cause a lot of additional load to the server. This is also the reason why Minions are summoned via an Item (later also Skill) and do not wander around the gameworld. Because that uses a lot of additional CPU/RAM on the server side and makes no sense in terms of gameplay.
The Summoning Limit is a shared limit between all types of Minions a player can summon. So if the limit is set to 5 and a player Summons 3 Sekeletons, that player will be able to summon another 2 Bandits for a total of 5.
Please note that all Summoning Items are disabled once this limit is reached, they are also disabled if the amount of Minions to be summoned is higher than the total cap. When a Minion dies, the amount is adjusted – so it might be possible for the player to summon Minions again.
• Example 1: You have just one item in your game that lets a player summon 3 Skeletons. After using this item once, any further use is disabled because the total number of summoned skeletons would exceed the technical maximum.
• Example 2: You have two items that allow a player to summon 3 Skeletons or 3 Bandits. After using one of them, the other one is disabled because the total amount would exceed the technical maximum.
Its an idea to provide your players with a number of summoning items of varying summon amounts (like 1 Skeleton, 2 Skeletons, 3 Skeletons) to compensate this limitation.