Strand Posted August 29, 2019 Group: Members Topic Count: 39 Topics Per Day: 0.01 Content Count: 102 Reputation: 2 Joined: 07/01/13 Last Seen: May 23, 2021 Share 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 Link to comment Share on other sites More sharing options...
0 Emistry Posted August 31, 2019 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share 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 Link to comment Share on other sites More sharing options...
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) { }?
Link to comment
Share on other sites
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.