Jump to content

[LE] To skilled modders: pls Help to find and fix problem


myav

Recommended Posts

i still don't understand what is wrong with combatstyle variables, that AI completelly ignore setoffensivemult and setgroupoffensive, but i found other way... not good way but better than nothing. This was tested and this reduces the frequency of AI attacks during the battle:

 

1. to create new combatstyle and to set there offense to 0.03 (with 0.05 npc attacks 1 time per 2 sec... with 0.03 attacks 1 time per 3 sec. all higher numbers, even 0.1 - npc attacks each second)

 

2. to put this new combatstyle into formlist on position 0 (or other known position) and

formlist property csList auto

ActorBase AB = target.getActorBase()
CombatStyle NewCS = csList.GetAt(0)
AB.SetCombatStyle(NewCS)

this is not good way.. because it replaces everything (equipment score mults, Melee Tab, Close Range Tab). But better this, than not working changes "setoffensive".

 

Also, not hard to store previous combatstyle of the npc as form, and when spell dispels to return it back.

 

So, ReDragon2013

 

thanks for your example where i have noticed csList.Find(AB.GetCombatStyle() as Form), and after your example, in the wiki i found command csList.GetAt

Edited by myav
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...