NPC's equiping items, 2 questions
#1
Posté 04 septembre 2011 - 04:36
I finally got my random item generator to work for my NPC's.
I am able to spawn in X random items, add random properties to them and get them to equip the stuff for combat.
However, the only 2 things I can verify that they are equiping are shields and weapons. I cannot tell if they are equiping belts, jewelry, boots, etc. How can I tell if the NPC is equiping this stuff?
Secondly, the NPC will regularly change weapons or shields during combat since they are liable to have multiple of each. How can I get the NPC to just use what he first equips?
On perception I have
ClearAllActions();
ActionEquipMostEffectiveArmor();
ActionEquipMostDamagingMelee();
ActionEquipMostDamagingRanged();
ActionDoCommand(ActionAttack(oPC));
I tried adding a do once statement, but that forced 2 of the test npc's to just sit there and the first one still swapped the equipment in and out.
Thanks!
#2
Posté 04 septembre 2011 - 05:00
Well, If you do not tell them to equip them they will not.Zeidae wrote...
I cannot tell if they are equiping belts, jewelry, boots, etc. How can I tell if the NPC is equiping this stuff?
Zeidae wrote...
Secondly, the NPC will regularly change weapons or shields during combat since they are liable to have multiple of each. How can I get the NPC to just use what he first equips?
On perception I have
ClearAllActions();
ActionEquipMostEffectiveArmor();
ActionEquipMostDamagingMelee();
ActionEquipMostDamagingRanged();
ActionDoCommand(ActionAttack(oPC));
If this is what you have in your script. you are telling the NPC to equip a melee weapon then equip a ranged weapon. The AI at that point may be switching them back to melee weapons. You could probable just leave the standaed perception script in place and let the AI handle the weapons.
#3
Posté 04 septembre 2011 - 05:07
How do I tell the NPC's to equip belts, boots, etc? I had the standard script executing from this one but it gave me an error when I tried to compile. But that's another story
thanks
#4
Posté 04 septembre 2011 - 12:19
#5
Posté 04 septembre 2011 - 11:42
What I still need to know is how to get them to not change weapons during combat. Is there any easy way to delete an inventory, minus what they have equiped? And minus ammo. I could not find any easy way to do that.
Thanks
#6
Posté 05 septembre 2011 - 03:07
If you want archers, then just give the archers ranged weapons only & melee fighters only melee weapons. I don't see how you could randomize a caster other than making them shoot random spells, though, as it is explained in XP2, random spells may make you enter situations where the spells they cast may be completly inappropriate or useless to the situation.
Makes sense to make random items for mobs, but randomizing too much may be bad, some Item &/or Properties on those items may not be effective or too effective.
Because you need more consistency to get a solid challenge, you don't want to overwhelm the PCs nor Underwhelm them, and a system that is too random is threatening to do one or the other, unfortunately.
Modifié par _Guile, 05 septembre 2011 - 03:12 .
#7
Posté 05 septembre 2011 - 03:38
as for some items being not or too effective, that is sort of the idea.
I am not worried about items being too strong, though, cause if it's too high a level, the npc CAN'T USE IT. All of the NPC gear is on par with the players gear only I had to remove over half of the properties. So instead of having a chance of AC 1-14 its 2, 4, 6, 8, etc.
And the PC's will be able to fill all of their slots with equipment and CHOOSE what to use. The NPC's will only be getting a handful of equipment. Lots of empty slots. So I am definitely not worried about the NPC's being too tough.
But I would still like it if the NPC did not try to equip other weapons in their inventory once they have chosen a weapon. And I believe the best way to accomplish that is to delete their inventory. But I don't know how to easily do that.
#8
Posté 05 septembre 2011 - 04:43
Zeidae wrote...
i'm not randomizing casters. All NPC's get random armor, melee weapons, ranged weapons and ammo.
But I would still like it if the NPC did not try to equip other weapons in their inventory once they have chosen a weapon. And I believe the best way to accomplish that is to delete their inventory. But I don't know how to easily do that.
If you are just going to delete the remainder anyway, then why not have the script decide their weapon for them and only create that item.
e.g.
If zen archery and wisdom is greater than dex and str: use range
Else if weapon finesse and dex is higher than strength: 50% range 50% melee
Else if dex is higher than strength: range
Else: melee
#9
Posté 05 septembre 2011 - 04:50
I have to use lilac's for the majority of what I create. Anything it can't do, I come here
And because it's random, create A could get 3 exotic weapons that he can't equip the first time you meet him, making him easy because he has to hit you with his fists, and the next time he could get that scimitar he really likes and hurt you a bit. Random. A ranger could get a crossbow or a longsword. Random. I would just prefer that once the monster has chosen a weapon that the rest of the items gets deleted.
I already have the random item creation script. Instead of trying to make something complex, a (hopefully easy) deletion script would seem the simplest option to do what I need. It isn't a deal-breaker having the monsters swap weapons, but it does look odd. But hey, maybe one weapon is real nice and the other crappy and you'll be sitting there hoping that he DOES switch!
#10
Posté 05 septembre 2011 - 04:52
Modifié par Zeidae, 05 septembre 2011 - 04:52 .
#11
Posté 05 septembre 2011 - 06:31
So that way no worries about them switching weapons and you could always delete any weapon that was not in the category of most damaging.
Modifié par ffbj, 05 septembre 2011 - 06:34 .
#12
Posté 11 septembre 2011 - 03:23
Might not be what you want, as there's a lot more to it then just that, but if you find yourself hitting a wall, it might be worth checking out for ya.
Modifié par Xovian, 11 septembre 2011 - 03:29 .





Retour en haut






