Qsp 1.9 Today

#cave *PL "You see a troll." if %troll_hp>0: *PL "Troll is angry." "Attack" : gosub 'attack_troll' Good (use subroutines for repeated logic):

#cave *PL "You see a troll." gosub 'display_troll_status' "Attack" : gosub 'attack_troll' QSP automatically saves all variables & current location. Use savegame / loadgame : qsp 1.9

! Create object object 'sword' objdesc 'A sharp iron sword' objstr %str_bonus = 5 end object ! Use object @sword['objstr'] "Access property" timer 'hour_cycle' 1000 "1000ms = 1s" Trigger location !timer : #cave *PL "You see a troll

Send this to a friend