Creating Different Tactic files for Homuns - Homunculus Headquarters - WarpPortal Community Forums

Jump to content


Photo
- - - - -

Creating Different Tactic files for Homuns


  • Please log in to reply
5 replies to this topic

#1 Erydanos

Erydanos

    Too Legit To Quit

  • Members
  • 1159 posts
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 29 June 2015 - 05:41 PM

I happen to have 2 accounts each one with a Homunculus.  Amistr-Sera on my main and a Vanilmirth on the alt one and since both of them still require some leveling I decided to try to make separate tactics for each one, following the instructions in AzzyAI's FAQ, but I know nothing about programming (or is it coding? Well you can see my point about me not knowing anything about this) :sob:

 

This is what I plan:

 

Copy the H_Tactics file and rename the copy into SERA_Tactics, since the AI is already customized for a Poison Mist Sera leveling.

 

Reset the AI to default settings and customize tactics for Vanilmirth then make a VANI_Tactics file.

 

Then going to H:Extra, I'll paste this in:

 

function OnInit()
    local htype=GetV(V_HOMUNTYPE,MyID)
    if htype==SERA then
        OldHomunType=AMISTR
        dofile("./AI/USER_AI/SERA_Tactics.lua")
    elseif htype==VANILMIRTH then
        dofile("./AI/USER_AI/VANI_Tactics.lua")
    end
end
 
So...is this good? Am I messing something up? Do I still need to relate each of the homuns with their corresponding account ID's? Is there something I'm missing? I'm assuming the Tactics files contain the data of the Homun Tactics in the Configuration Tool, but stuff like Poison Mist -Idle, SmartBulwark and AoEReserveSP still needs to be set on the .exe file.
 
Any help or advice will be greatly appreciated, thanks in advance. :p_idea:

 


Edited by Erydanos, 29 June 2015 - 05:50 PM.

  • 0

#2 ShoLin

ShoLin

    Too Legit To Quit

  • Members
  • 2107 posts
  • Playing:Nothing
  • Server:Quit

Posted 29 June 2015 - 10:15 PM

I just made copies of the game, but I'm lazy.


  • 0

#3 Erydanos

Erydanos

    Too Legit To Quit

  • Members
  • 1159 posts
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 30 June 2015 - 05:39 PM

So I just tried it and the game didn't collapse (no AI lua error thingie whatsoever)

 

Tried with the Vani first, it seems that even if it has its own tactics' folder any changes I do in the Configuration tool make effect, so I wonder if it's even reading the VANI_Tactics file....(Or is it because Vani is the Homun type recognized by default?)

 

The Amistr-Sera behaves as intended in its tactics' file though, even if I change stuff in the configuration tool.


Edited by Erydanos, 01 July 2015 - 01:04 AM.

  • 0

#4 ShoLin

ShoLin

    Too Legit To Quit

  • Members
  • 2107 posts
  • Playing:Nothing
  • Server:Quit

Posted 01 July 2015 - 07:39 AM

Copy the whole game folder, name the extra one like Homun2 or something. Then make the edit for the other homun in the copy you made.


Edited by ShoLin, 01 July 2015 - 07:39 AM.

  • 0

#5 DrAzzy

DrAzzy

    Really Azzy? Already?

  • VMod Retired
  • 15606 posts
  • LocationNew England
  • Playing:Ragnarok Online
  • Server:Chaos-Clandestine Society

Posted 01 July 2015 - 09:47 AM

Off the top of my head, what you had should work if you have the cute vani. 

 

try 

    elseif (htype==VANILMIRTH or htype==(VANILMIRTH+4)) then


  • 1

#6 Erydanos

Erydanos

    Too Legit To Quit

  • Members
  • 1159 posts
  • Playing:Ragnarok Online
  • Server:Chaos

Posted 02 July 2015 - 12:15 PM

Off the top of my head, what you had should work if you have the cute vani. 

 

try 

    elseif (htype==VANILMIRTH or htype==(VANILMIRTH+4)) then

 

It worked! Thanks!  :p_idea:


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users