making function hermit() not abort script

tyilo

Member
i have this script:
Code:
item clover = $item[Ten-leaf clover];
hermit(5, clover);
use(item_amount($item[Disassembled clover]), $item[Disassembled clover]);
put_shop(1, 0, item_amount(clover), clover);

When i run it will never execute line number 3 and 4, beacuse when the hermit() function returns false, the script will abort.
How do i fix this?
 

StDoodle

Minion
Code:
if (!hermit(5,$item[ten-leaf clover])) print("You'll get to see this line instead of an abort, which happens whenever you have a boolean function return false & don't capture said value in some way.");
 
Top