Is it possible, with scripting, to locate a specific type of monster and how many of them?
For example a roach queen.
I'm trying to script a challenge, where you first need to kill all brains before killing any roach queen,
of course there will be roaches to kill, so I can't use something like "
wait for monster stabbed.
Also the roach queens can move around...
EDIT:
I'm trying something like this: 2NPC's
1)
Click here to view the secret text
×Label Loop
Set var "_MyScriptX" = _X
Set var "_MyScriptY" = _Y
Set var "Roach Queen Counter" = 0
If ...
Wait for entity type Roach queen,0,0,0,0
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
Set var "Roach Queen Counter" + 1
Else
Set var "_MyScriptX" = -9999
Set var "_MyScriptY" = -9999
If End
Wait 1
Go to Loop
2)
Click here to view the secret text
× If ...
Wait for clean room
Go to NOK
If End
Wait 0
Label Loop
If ...
Wait until var "Roach Queen Counter" < 4
Go to NOK
If End
If ...
Wait for event All brains removed
Go to OK
If End
Wait 1
Go to Loop
Label OK
Wait for clean room
Challenge completed
End
Label NOK
So I'm hoping that every turn, the script counts the queens.
Of course I just saw, that every turn the var resets to 0 and so the second script will fail.
But does that counter thing work? because i have no idea how the _myscripts work.
I tried searching in the help files, but I didn't find enough to help me.
____________________________
Click here to view the secret text
×DROD number: 688
20th Skywatcher!
If you want to play KDD AE in DROD 5.0
If you want Neather sprites
DROD Statistics: (rooms/secrets/challenges)
Click here to view the secret text
×
Main Holds:
King Dugan's Dungeon AE (350/0/0)
King Dugan's Dungeon (408/23/100)
Journey to Rooted Hold (474/34/80)
The City Beneath (529/29/72)
Gunthro and the Epic Blunderc(424/42/40)
The Second Sky (888/65/46)
Smitemaster Selections:
The Choice (18/2/0)
Perfection (77/14/0)
Beethro and the Secret Society (73/15/0)
Halph Has a Bad Day (45/3/0)
Beethro's Teacher (106/8/0)
Master Locks (40/1/0)
Master Locks Expert (40/1/0)
Smitemastery 101 (92/14/0)
Devilishly Dangerous Dungeons of Doom (60/6/0)
Suit Persuit (69/8/0)
Complex Complex (111/19/0)
Finding the First Truth (153/16/0)
Flood Warning (42/4/0)
Treacle Stew (188/13/6)
RPG:
Tendry's Tale (360/40/0)
Official Holds Total Room Count (without KDD AE): 4197
Official Holds Total Secret Room Count: 357
Official Holds Challenges: 344
Nice links:
FlashDROD
Levelmaps
Challenges
Hall of Legendary Smitemasters
Idea Generator
Room Search
Architects Edition
DROD hold tools
[Last edited by robin at 09-25-2015 12:18 AM]