"Группирование" монстров в квесте
#15
Kreig, вот мой код в Mob-файле.

Код:
GlobalVars (
 NULL : object,
 VSS#i#val : object,
 i : object,
 AllTigs1 : group,
 LMPTigerRed21 : object,
 LMPTigerRed22 : object,
 LMPTigerRed23 : object,
 LMPTigerRed24 : object,
 LMPTigerRed25 : object,
 LMPTigerRed26 : object,
 LMPTigerRed27 : object
)

DeclareScript IsInArea ( this : object )
DeclareScript VTriger#2#1 (  this : object )
DeclareScript VTriger#2#2 (  this : object )
DeclareScript IsTigsKilled ( this : object )

Script VTriger#2#1
(
 if
 (
 )
 then
 (
   KillScript(  )
   AddRoundToArea( 1, 50, 173, 35)
   QStart("z3q5")
   GsSetVarMax(0,"q.z3q5.z3q5.1",1)
   IsInArea( NULL )
 )
)

Script IsInArea
(
 if
 (
   Any( i, Heroes, IsInArea( GetX( i ), GetY( i ),1))
 )
 then
(
  GsSetVarMax(0,"q.z3q5.z3q5.1",2)
  GsSetVarMax(0,"q.z3q5.z3q5.2",1)
  IsTigsKilled( NULL )
)
)

Script IsTigsKilled
(
 if
 (
    Every(i,AllTigs1,Not(IsAlive( i )))
 )
 then
 (
    KillScript(  )
    GsSetVarMax(0,"q.z3q5.z3q5.1",2)
    QuestComplete(0,"q.z3q5.z3q5")
    QFinish(  )
 )
)



Script VTriger#2#2
(
 if
 (
 )
 then
 (
   KillScript(  )
   ActivateTrap( Pyramid, 0 )
 )
)

WorldScript
(
 ConsoleString("Test!")
 Sleep( 2 )
 LMPTigerRed21 = GetObjectByID( "1000317" )
 LMPTigerRed22 = GetObjectByID( "1000329" )
 LMPTigerRed23 = GetObjectByID( "1000324" )
 LMPTigerRed24 = GetObjectByID( "1000332" )
 LMPTigerRed25 = GetObjectByID( "1000330" )
 LMPTigerRed26 = GetObjectByID( "1000328" )
 LMPTigerRed27 = GetObjectByID( "1000316" )
 AddObject( AllTigs1, GetObject( 1000317 )  )  
 AddObject( AllTigs1, GetObject( 1000329 )  )  
 AddObject( AllTigs1, GetObject( 1000324 )  )  
 AddObject( AllTigs1, GetObject( 1000332 )  )  
 AddObject( AllTigs1, GetObject( 1000330 )  )  
 AddObject( AllTigs1, GetObject( 1000328 )  )  
 AddObject( AllTigs1, GetObject( 1000316 )  )  
VTriger#2#1( NULL )
 VTriger#2#2( NULL )

)

Даже после замены прямоугольной области на круговую, все равно игра не распознает вход героя в область...
Ответ


Сообщения в этой теме
"Группирование" монстров в квесте - от Ivan - 06.05.2006, 23:17

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)