Garrulous Glaahk spyderbytes Posted April 11, 2004 Share Posted April 11, 2004 The trap.txt script doesn't work "out of the box" as stated in the opening comments. It never checks to see if the party has a special item to help disarm it. To fix it, look for the two spots that say: Code: if (get_highest_skill(15) < get_mechanism_difficulty()) { print_str_color("The trap goes off!",2); and change them to: Code: if ((get_highest_skill(15) < get_mechanism_difficulty()) && (get_memory_cell(1) == 0 || (has_special_item(get_memory_cell(1)) == 0))) { print_str_color("The trap goes off!",2); Of course, if you never use a special item for disarming a trap, it won't matter. (NB: It's only the if that changed--I included the next line only to help establish context.) EDIT: Typo... had a misplaced close parenthesis that would have made the trap always disarm, even without the special item. -spyderbytes Link to comment Share on other sites More sharing options...
Recommended Posts