Strand Posted August 29, 2019 Posted August 29, 2019 Hello community, I have a question: Is it possible to make areamonsters command detectable using killedrid? Here is an example: OnInit: areamonster "1@exile",394,6 ,348,50,"--ja--",3896,20,strnpcinfo(0)+"::On1stFloor",0,0; if ( killedrid == 3896 ) { set monster,1; dispbottom "Congratulations! You have killed the monster."; end; } I know that the correct way to execute an action when killing the monster is by doing On1stFloor: and then put the script to trigger. On1stFloor: set monster,1; dispbottom "Congratulations! You have killed the monster."; end; But is there any way to make that areamonster script to be recognized when using if ( killedrid == 3896) { }? Quote
0 Emistry Posted August 31, 2019 Posted August 31, 2019 (edited) On1stFloor: set monster,1; dispbottom "Congratulations! You have killed the monster."; end; there are no need to check for killedrid since the event label are only triggered when you killed the target monster. and what's the point to check for monster id during spawning process? Edited August 31, 2019 by Emistry Quote
Question
Strand
Hello community,
I have a question: Is it possible to make areamonsters command detectable using killedrid?
Here is an example:
OnInit: areamonster "1@exile",394,6 ,348,50,"--ja--",3896,20,strnpcinfo(0)+"::On1stFloor",0,0;
if ( killedrid == 3896 ) { set monster,1; dispbottom "Congratulations! You have killed the monster."; end; }
I know that the correct way to execute an action when killing the monster is by doing On1stFloor: and then put the script to trigger.
On1stFloor: set monster,1; dispbottom "Congratulations! You have killed the monster."; end;
But is there any way to make that areamonster script to be recognized when using if ( killedrid == 3896) { }?
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.