Jump to content

bug fix for trap.txt


Recommended Posts

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. smile

 

(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. shocked

 

-spyderbytes

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...