User:Glflegolas/Civilian Ideas

Over the past few days, I have been reading the Suggestions forum, and was inspired by JacobDiamond's ideas about civilian NPC's. In fact, I thought his ideas were so good that I went on to add to them myself.

Which factions are you talking about?
Primarily Gondor and Rohan, though these ideas could also be applied to other factions featuring human civilians in the future. This discussion will be primarily centered around Rohirric and Gondorian civilians.

Where would they spawn?
Well, in villages, of course. However, civilians would also rarely spawn throughout the lands of Rohan and Gondor, and also inside generated structures on occasion.

What weapons would they use?
For randomly spawned civilians, the weapon percentages would be as follows: 30% of civilians should be wielding a dagger (+5.5 HP), 50% of civilians would be unarmed, and 20% of civilians would be wielding a random tool from the list below: Most of the above weapons wouldn't be craftable, and would be purely cosmetic. Note that items marked with a ^ lose durability very fast when used as a weapon by the Player. Also, if civilians spawned in certain buildings, they would not be carrying certain weapons. For example, a civilian spawned in a woodshop will wield a handsaw, carpenter's hammer, chisel, and rarely an axe, while a farmer would be wielding a hoe, shears, and rarely a shovel.
 * Axe (+5 HP)
 * Shovel (+3 HP)
 * Pickaxe (+4 HP)
 * Hoe (+3 HP) ^
 * Trowel (+2 HP) ^
 * Shears (+2 HP) ^
 * Handsaw (+2 HP) ^
 * Carpenter's hammer (+4 HP, deals increased knockback)
 * Chisel (+3 HP) ^

Any AI ideas?
The AI for civilian NPC's that I have been able to come up with has been as follows. When approached by a player/NPC with a negative alignment, the civilians have a 40% chance to run to a friendly soldier, a 30% chance of running off in a random direction, a 35% chance of heading for the nearest structure, and a 5% chance of "calling the army", causing several Gondor Soldiers/Rohirrim to spawn around the player or NPC.

If the civilian is attacked, they will of course fight back, unless they have no weapon at all, in which case they'll keep doing whatever they were doing when they were approached.

If the civilian has an axe or dagger, he has an 80% chance of attacking an enemy player/NPC when approached, and a 20% chance of running for the nearest soldier.

All civilians would run away from invasions.