or constant duration upperbound can be omited.Įquipment slot which should be used during animation. Random value will be selected from the interval. Interval for animation duration in milliseconds. "lowerbound_duration upperbound_duration".If NPC character has multiple idle animations, they are executed in a loop in random order according to duration bounds.Ĭode: Select all %npc.addIdle("state1", "lowerbound_duration upperbound_duration", "hands") If you would like to alter animations, you should use. This function will return the NPC Character object, which can be connected to action zone, or altered with extra animations.īy default, every NPC character has idle animation performed in a loop. If you would like to login into character, you should make it active at your database. You may use same ID for multiple NPCs.Ĭhracters used for NPC will be hidden from your character selection window, they will be marked as inactive characters. You can generate NPC template via keybind from client in GM mode.Ĭode: Select all %npc = BasilMod::npc_create(ID, "position", "rotation") Ĭhracter ID which should be used for appearance and equipment.
This will result in %npc, %npcSmith and %npc34 NPC characters to execute the action once Player enters action zone.Ĭore function for creating the NPC. For constant duration upperbound can be omited.Īnimation which should be used for actionĮquipment slot which should be used in hand during action.įunction returns Zone object, which can be used for NPC connection, with. Random delay from the interval will be used. Interval in milliseconds which should be used by NPC for performing action. What you need is higher fertility or some kind of sandbox where everything cost 0. NPC reacts when player enters such zone.Ĭode: Select all %zone = BasilMod::npc_zone("position", "radius", "lowerbound_delay upperbound_delay", "state", "hands") If you one of these players who want faster speed to skip slow, boring waiting periods of reproduction (baby makings) or long waits till you collect enough materials to expand your town you dont need x20 or x50 times faster mod. Reload with empty config fill with do the same.Ĭore function for creating action zone for NPC. You can issue this command directly from server console, or via keybind from client in GM mode. BasilMod::NPC provides following function which can be used for NPC manipulations.