The tears of the devil debug thread
I'm debugging a d-mod before igo on with m other (though slow on progress)d-mod.
but it is above my current d-modding skills. so i'm asking a little help.
ok the major bugs are
1. the purple bonca bug.(need is say more?)
2. the !nsane class monster don't drop gold(though they are supposed to and usually enough to satisfy the potion shop ducks(might ad a 3rd in the health shop for defense).
i might be in the emake so here is their emake segment
the strange thing is i on;y copy and pasted it and added the potion section. if gold was dropped i could have reduces the likelyhood of gold with another if statement. so it would make harder again.
the gold it self works just fin. you can find some piles of it deep in the insanity caves open only on !nsane mode.
3. the corpse sprites don't show the corpses as they are supposed to. even though they are barely altered original scripts. and this bug mainly focuses on slayers and bosses.(for the bosses hard and !nsase).
but it is above my current d-modding skills. so i'm asking a little help.
ok the major bugs are
1. the purple bonca bug.(need is say more?)
2. the !nsane class monster don't drop gold(though they are supposed to and usually enough to satisfy the potion shop ducks(might ad a 3rd in the health shop for defense).
i might be in the emake so here is their emake segment
void !nsane ( void ) { int &mcrap = random(20,1); if (&mcrap == 2) { //lets give 'em a large heart int &crap = create_sprite(&save_x, &save_y, 6, 54, 1); sp_script(&crap, "heart"); return; } if (&mcrap == 3) { &mcrap = random(3,1); if (&mcrap == 1) { //give them food type 1 int &crap = create_sprite(&save_x, &save_y, 6, 421, 1); sp_script(&crap, "sfood"); } if (&mcrap == 2) { //give them food type 2 int &crap = create_sprite(&save_x, &save_y, 6, 421, 2); sp_script(&crap, "sfood"); } if (&mcrap == 3) { //give them food type 3 int &crap = create_sprite(&save_x, &save_y, 6, 421, 7); sp_script(&crap, "sfood"); } if (&mcrap == 4) { //give them food type 4 int &crap = create_sprite(&save_x, &save_y, 6, 421, 8); sp_script(&crap, "sfood"); } return; } if (&mcrap == 4); { //statpotion won &mcrap = random(70,1); if (&mcrap == 1) { //give them food type 1 int &crap = create_sprite(&save_x, &save_y, 6, 421, 1); sp_script(&crap, "bpoiton"); } if (&mcrap == 2) { //give them food type 2 int &crap = create_sprite(&save_x, &save_y, 6, 421, 2); sp_script(&crap, "rpotion"); } if (&mcrap == 3) { //give them food type 3 int &crap = create_sprite(&save_x, &save_y, 6, 421, 7); sp_script(&crap, "ppotion"); } if (&mcrap == 4) { //give them food type 4 int &crap = create_sprite(&save_x, &save_y, 6, 421, 8); sp_script(&crap, "apotion"); } return; } debug("Making gold200"); //lets give 'em a random amount of gold int &crap = create_sprite(&save_x, &save_y, 6, 178, 4); sp_script(&crap, "insgold"); return; }
the strange thing is i on;y copy and pasted it and added the potion section. if gold was dropped i could have reduces the likelyhood of gold with another if statement. so it would make harder again.
the gold it self works just fin. you can find some piles of it deep in the insanity caves open only on !nsane mode.
3. the corpse sprites don't show the corpses as they are supposed to. even though they are barely altered original scripts. and this bug mainly focuses on slayers and bosses.(for the bosses hard and !nsase).
script looks fine to me though im no expert! sorry i cant help but there must be someone here who can! good luck!
Have you tried renaming all "!nsane" functions to "insane"? In most programming languages "!" is a reserved operator and trying to name anything with a "!" will just cause a whole load of FAIL. Even if DinkC somehow accepts this, it's bad form, and most programmers heads will explode trying to figure out just what exactly you're trying to do.
I tried that and nothing changed. at first the drop rate seemed to have increased. but that soon turned out to be pure luck(3 screens of !nsane class monsters taught me that(on 1 i won a loaf of bread and on the last a thank fully accepted mega-potion was won(and they where jam packed with them monsters)).