priezm / ro-rail

Automatically exported from code.google.com/p/ro-rail
0 stars 0 forks source link

Adding feature to sense the number of monster around #26

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What feature would enhance usability or efficiency?
A counter for the number of monster around.(?)

What steps would demonstrate the improvement granted by the recommended
feature?
1.Monsters within the area of MaxDistance will be calculated
2.Use certain skill if monsters exceed the amount inputted by the user
3.Improvement in efficiency of sp usage. (Not worth it using Blood Lust with 
only one monster around

What is the current behavior in the above situation?
Nothing

What revision of the product are you using?
Version.lua 171 2010-06-19 10:12:41

What type of homunculus/mercenary are you using?
Amistr

Please provide any additional information below.
ince it actually detect all the actor around the user/homunculus, might as well 
make a counter to it and decrease the counter if it dies/ increase the counter 
if monster spawned. (Not sure if this is doable, just a suggestion)

Original issue reported on code.google.com by simon.as...@gmail.com on 9 Jul 2010 at 7:40

GoogleCodeExporter commented 8 years ago
This would not be difficult to implement. I will wait to implement this until 
after I have added code for Amistr skills. It may not need to be part of the 
code-base, but instead an example of the "Condition" state-file option for 
skills. That option has not been documented yet, because it is very advanced.

Original comment by faithful...@gmail.com on 9 Sep 2010 at 7:43

GoogleCodeExporter commented 8 years ago
This feature is specific enough that I do not believe it should be implemented 
as a part of the base AI. Custom skill conditions that need an enemy count can 
implement it simply using the following few lines in the condition function 
itself:

local enemy_count = 0
for id,actor in pairs(_G.RAIL.ActorLists.Enemies) do enemy_count = enemy_count 
+ 1 end

Original comment by faithful...@gmail.com on 2 Dec 2010 at 5:54