MAC's NPCs v1.2 Documentation (ENG)

image5.png

Basic Setup

1. To install this addon to your server just unzip it to your garrysmod/addons folder

2. Inside “mc_simple_npcs/lua/mcs_npcs” open sh_config.lua and configure the addon 

Config:

MCS.Config.UseDelay = 2			// Delay between player can press "Use" button on NPCs
MCS.Config.TextSpeed = 3			// Speed of text typing animation (1 - fastest, 10 - slowest)
MCS.Config.DebugMode = false             // DebugMode enables close button at top right corner
MCS.Config.NPCTextColor = Color(255,255,255)		// Color of NPC's text
MCS.Config.TextColor = Color(255,255,255)		// Color of answers NPC's name and skip button
MCS.Config.HighlightColor = Color(217,170,0)		// Color of answer button when highlighted
MCS.Config.LinesColor = Color(155,155,155)		// UI's outline color
MCS.Config.HLLinesColor = Color(255,255,255)		// UI's corner lines color
MCS.Config.EnableBlur = true				// Enable UI blur effect
				
MCS.Config.SkipButton = "Press LMB to skip"	// Text of skip button
MCS.Config.AnswersFont = "MCS_Arial32"		// Answer lines font
MCS.Config.NPCFont = "MCS_Arial24"		// NPC's text font
MCS.Config.AnswersAlign = TEXT_ALIGN_LEFT	// Answer text align - TEXT_ALIGN_LEFT TEXT_ALIGN_RIGHT TEXT_ALIGN_CENTER

3. To start setting up an NPC enter the server. Open the game console and type the mcs_setup command to open the setup menu. Note: In order to open you must have superadmin privilege on your server

This menu will feature some things like autosave on close and autoload last edited NPC and a menu bar with options to load and save current NPC as a template

image12.png

You also can start a fresh setup by choosing New option

image13.png

NPC Setup

Unique ID

image9.png

In this text box, you must enter the unique name for the NPC. It used only by the server and it must be unique for each NPC you create. It will also be used as a name for the save file.

NPC Name

image2.png

NPC’s Name will be displayed above it and inside the dialogue box. Example:

image17.png

NPC Name position

image18.png

This slider will adjust the height of the NPC’s name displayed above his head. This can be useful if you use bigger or smaller models. Read more about it in the advanced setup

Use limitation