All Bets are off
#1
Posted 17 November 2002 - 08:52 AM
#2 -Sim-
Posted 17 November 2002 - 10:38 AM
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
OR(2)
Name(Myself,"npc1")
Name(Myself,"npc2")
THEN
RESPONSE #100
IncrementGlobal("killcount","LOCALS",1)
END
You the have two kill counts. However, to compare them, it might be easier to use two separate variables, and make them GLOBAL.
So:
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
Name(Myself,"npc1")
THEN
RESPONSE #100
IncrementGlobal("npc1killcount","LOCALS",1)
END
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
Name(Myself,"npc2")
THEN
RESPONSE #100
IncrementGlobal("npc2killcount","LOCALS",1)
END
#3 -Sim-
Posted 17 November 2002 - 10:50 AM
#4
Posted 17 November 2002 - 11:37 AM
Thanks. It seems like this should work but I do have one question. Is "KILLED([ANYONE])" a reference the EXE will accept? I can't find references to it or another script where it is used.I would use have a global set to 1 while in the dungeon. Then, in DPLAYER2 and DPLAYER3:
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
OR(2)
Name(Myself,"npc1")
Name(Myself,"npc2")
THEN
RESPONSE #100
IncrementGlobal("killcount","LOCALS",1)
END
You the have two kill counts. However, to compare them, it might be easier to use two separate variables, and make them GLOBAL.
So:
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
Name(Myself,"npc1")
THEN
RESPONSE #100
IncrementGlobal("npc1killcount","LOCALS",1)
END
IF
Global("indungeon","GLOBAL",1)
Killed([ANYONE])
Name(Myself,"npc2")
THEN
RESPONSE #100
IncrementGlobal("npc2killcount","LOCALS",1)
END
#5 -Sim-
Posted 17 November 2002 - 12:08 PM
Don't rely on existing scripts for what will work. There are many useful things that were never used in any original script.
#6
Posted 17 November 2002 - 12:11 PM
In that case, thank you twice!Killed() is a valid trigger, and [ANYONE] is a valid object mask. It should be quite acceptable.
Don't rely on existing scripts for what will work. There are many useful things that were never used in any original script.