打印

LUA 问题

LUA 问题

This is Battle Npc script portion
-----------------------------------------------------------
--設置NPC方向
        Char.SetData(_MeIndex, %對像_方向%, %下%);
------------------------------------------------------------
I do not understand This source
If XXXX.arg  設置NPC方向 = dir=?
Lua -> ???????????
I try find LNS It's failed.
Please tell me the direction of the LUA

TOP

Then
---------------------------------------------------
     if i >= 4 then
                i = i - 4;
        else
                i = i + 4;        
        end
        Char.SetData(_MeIndex, %對像_方向%,i);
--------------------------------------------------
i = 4 -+ 4 ?
I understand but
I do not understand - i = i-4; , i=i+4;

TOP

GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOD

TOP