19 lines
507 B
GDScript
19 lines
507 B
GDScript
extends NpcScript
|
|
|
|
#
|
|
const ENTRANCE_POS : Vector2 = Vector2(1536, 1600) # tile (48, 50)
|
|
|
|
#
|
|
func OnStart():
|
|
Mes("站住。")
|
|
Mes("议员博恩斯的命令:没有许可,任何人不得进入这些走廊。")
|
|
Mes("我不管你为什么来。转身,出去。")
|
|
Action(Escort)
|
|
|
|
func Escort():
|
|
if own.state == ActorCommons.State.TRIGGER:
|
|
own.SetState(ActorCommons.State.TRIGGER)
|
|
|
|
var entranceMapID : int = "图利姆沙 Center".hash()
|
|
Action(NpcCommons.Warp.bind(own, entranceMapID, ENTRANCE_POS))
|