The forums will be going offline for an extended maintenance period at 1400hrs GMT on 19th June 2025. The number of hours for this downtime is intentionally not advertised due to the nature of these upgrades.
×
- 0
Array based Quest with Blacklist
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
mawjustin
Hi Guys,
How do we do this? How do we compare 2 list of arrays, remove those that matched, and the remaining arrays will be the one used for random summoning?
Here is an example code.
And this is the array of mobs.
How do we put a blacklist into the set of arrays, without removing it from .Mob_List[0] ??
Now I understand that this would be a lot easier if we just remove the mob in the .Mob_List[0] , but I would like to understand how do we do this.
So instead of directly calling this line:
It would have to check first if there is something in the blacklist, and then summon the monster.
What I'm trying to accomplish here is an array-based list of monsters, and blacklisted monsters.
Supposing A = .Mob_List[0]
and B = .Mob_BlackList[0]
It must compare first the list of A, and B, then remove the same ID on both. And then whatever's left will be the one randomized.
I tried doing this using for loop, but my coding is rusty. I'm sorry.
I hope you can help me guys.
EDIT:
Found a quick workaround, I used if statement to check if it is in .Mob_BlackList[0], but the script will be too long if there's many blackist.
found a quick workaround.
Link to comment
Share on other sites
6 answers 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.