Command "or" for npc

astral

Dedicated Member
Dedicated Member
Dec 14, 2012
109
3
45
Poland
will anyone tell me how to use the "or" command for npc?

I need to write a script that checks:

#IF
checknamelist [xxx\1.txt]
Goto @tele1
#IF
checknamelist [xxx\2.txt]
goto @tele2

because this solution does not work
 

Sanjian

Just a Mir2 Fan
VIP
Apr 28, 2011
3,957
5
2,074
350
East Sussex
interesting i cant get OR to work on a CHECKITEM

Code:
#IF
CHECKITEM DungeonEscape 1 
OR CHECKITEM TownTeleport 1
#ACT
MOVE D001

the #ACT is only implemented if i have a DE. if i have no DE and have a TT the #ACT doesnt work

is there a reason for this?
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
Re: Command "or" for npc

interesting i cant get OR to work on a CHECKITEM

Code:
#IF
CHECKITEM DungeonEscape 1 
OR CHECKITEM TownTeleport 1
#ACT
MOVE D001

the #ACT is only implemented if i have a DE. if i have no DE and have a TT the #ACT doesnt work

is there a reason for this?
You realise this is mir3 section, not crystal right?.

I wouldnt have asked how the command worked if it was in crystal lol

Sent from my SM-G930F using Tapatalk
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,179
30
2,783
540
Re: Command "or" for npc

FML >.< no sorry lmao

you can acheive the same thing in crystal by

Code:
#IF
CHECKITEM DungeonEscape 1 
#ACT
MOVE D001
BREAK

#IF
CHECKITEM TownTeleport 1
#ACT
MOVE D001
BREAK

I might add an OR to npcs at some point as its easy to do.
 
Upvote 0