Code:
//********************************************************************//
// REAGENT LIST //
// DISPLAYS A LIST OF REGS A PLAYER HAS IN THEIR BACKPACK //
//********************************************************************//
[FUNCTION status_reg_amtcolor]
LOCAL.CNT = <eval <rescount i_reag_<args>>>
if ( 0 )
elseif ( <LOCAL.CNT> < 10 )
RETURN 025
elseif ( <LOCAL.CNT> < 20 )
RETURN 025
else
RETURN 0
endif
[FUNCTION status_reg_namecolor]
LOCAL.CNT = <eval <rescount i_reag_<args>>>
if ( 0 )
elseif ( <LOCAL.CNT> < 10 )
RETURN 025
elseif ( <LOCAL.CNT> < 20 )
RETURN 0
else
RETURN 0
endif
[FUNCTION status_reg_itemnum]
RETURN <eval <serv.itemdef(i_reag_<args>).id>>
[FUNCTION regs]
if ( <SRC.ISDEAD> )
src.sysmessage You're dead.
return 1
endif
If <ARGN1> = 1
DIALOG d_reagents 1
ELSEIF <ARGN1> = 2
DIALOG d_reagents 2
ELSEIF <ARGN1> = 3
DIALOG d_reagents 3
ELSE
DIALOG d_reagents
ENDIF
//********************************************************************//
[DIALOG d_reagents]
0, 0
gumppic -8 0 <eval 097e>
gumppic -8 90 <eval 097e>
gumppic -8 180 <eval 097e>
PAGE 1
tilepic 0 4 <eval <status_reg_itemnum spider_silk>>
dtext 7 12 <eval <status_reg_amtcolor spider_silk>> <eval <rescount i_reag_spider_silk>>
dtext 45 8 <eval <status_reg_namecolor spider_silk>> Spider's Silk
tilepic 0 34 <eval <status_reg_itemnum sulfur_ash>>
dtext 7 42 <eval <status_reg_amtcolor sulfur_ash>> <eval <rescount i_reag_sulfur_ash>>
dtext 45 38 <eval <status_reg_namecolor sulfur_ash>> Sulfurous Ash
tilepic 0 64 <eval <status_reg_itemnum nightshade>>
dtext 7 72 <eval <status_reg_amtcolor nightshade>> <eval <rescount i_reag_nightshade>>
dtext 45 68 <eval <status_reg_namecolor nightshade>> Nightshade
tilepic 0 94 <eval <status_reg_itemnum blood_moss>>
dtext 7 102 <eval <status_reg_amtcolor blood_moss>> <eval <rescount i_reag_blood_moss>>
dtext 45 98 <eval <status_reg_namecolor blood_moss>> Blood Moss
tilepic 0 125 <eval <status_reg_itemnum ginseng>>
dtext 7 132 <eval <status_reg_amtcolor ginseng>> <eval <rescount i_reag_ginseng>>
dtext 45 128 <eval <status_reg_namecolor ginseng>> Ginseng
tilepic 0 155 <eval <status_reg_itemnum garlic>>
dtext 7 162 <eval <status_reg_amtcolor garlic>> <eval <rescount i_reag_garlic>>
dtext 45 158 <eval <status_reg_namecolor garlic>> Garlic
tilepic 0 185 <eval <status_reg_itemnum mandrake_root>>
dtext 7 192 <eval <status_reg_amtcolor mandrake_root>> <eval <rescount i_reag_mandrake_root>>
dtext 45 188 <eval <status_reg_namecolor mandrake_root>> Mandrake Root
tilepic 0 215 <eval <status_reg_itemnum black_pearl>>
dtext 7 222 <eval <status_reg_amtcolor black_pearl>> <eval <rescount i_reag_black_pearl>>
dtext 45 218 <eval <status_reg_namecolor black_pearl>> Black Pearls
button 65 252 <eval 09cd> <eval 09cd> 0 2 0
button 97 252 <eval 085F> <eval 085E> 1 0 0
PAGE 2
tilepic 0 4 <eval <status_reg_itemnum blood_vial>>
dtext 7 12 <eval <status_reg_amtcolor blood_vial>> <eval <rescount i_reag_blood_vial>>
dtext 45 8 <eval <status_reg_namecolor blood_vial>> Blood Vials
tilepic 0 34 <eval <status_reg_itemnum volcanic_ash>>
dtext 7 42 <eval <status_reg_amtcolor volcanic_ash>> <eval <rescount i_reag_volcanic_ash>>
dtext 45 38 <eval <status_reg_namecolor volcanic_ash>> Volcanic Ash
tilepic 0 64 <eval <status_reg_itemnum Dragons_heart>>
dtext 7 72 <eval <status_reg_amtcolor Dragons_heart>> <eval <rescount i_reag_Dragons_heart>>
dtext 45 68 <eval <status_reg_namecolor Dragons_heart>> Dragon's Hearts
tilepic 0 94 <eval <status_reg_itemnum bone>>
dtext 7 102 <eval <status_reg_amtcolor bone>> <eval <rescount i_reag_bone>>
dtext 45 98 <eval <status_reg_namecolor bone>> Bone
tilepic 0 125 <eval <status_reg_itemnum pumice>>
dtext 7 132 <eval <status_reg_amtcolor pumice>> <eval <rescount i_reag_pumice>>
dtext 45 128 <eval <status_reg_namecolor pumice>> Pumice
tilepic 0 155 <eval <status_reg_itemnum worm_heart>>
dtext 7 162 <eval <status_reg_amtcolor worm_heart>> <eval <rescount i_reag_worm_heart>>
dtext 45 158 <eval <status_reg_namecolor worm_heart>> Wyrm's Hearts
tilepic 0 185 <eval <status_reg_itemnum fertile_dirt>>
dtext 7 192 <eval <status_reg_amtcolor fertile_dirt>> <eval <rescount i_reag_fertile_dirt>>
dtext 45 188 <eval <status_reg_namecolor fertile_dirt>> Fertile Dirt
tilepic 0 215 <eval <status_reg_itemnum brimstone>>
dtext 7 222 <eval <status_reg_amtcolor brimstone>> <eval <rescount i_reag_brimstone>>
dtext 45 218 <eval <status_reg_namecolor brimstone>> Brimstone
button 5 252 <eval 09cc> <eval 09cc> 0 1 0
button 65 252 <eval 09cd> <eval 09cd> 0 3 0
button 97 252 <eval 085F> <eval 085E> 1 0 0
PAGE 3
tilepic 0 4 <eval <status_reg_itemnum ectoplasm_vial>>
dtext 7 12 <eval <status_reg_amtcolor ectoplasm_vial>> <eval <rescount i_reag_ectoplasm_vial>>
dtext 45 8 <eval <status_reg_namecolor ectoplasm_vial>> Ectoplasm Vials
tilepic 0 34 <eval <status_reg_itemnum heart_zombie>>
dtext 7 42 <eval <status_reg_amtcolor heart_zombie>> <eval <rescount i_reag_heart_zombie>>
dtext 45 38 <eval <status_reg_namecolor heart_zombie>> Zombie Hearts
button 5 252 <eval 09cc> <eval 09cc> 0 2 0
button 97 252 <eval 085F> <eval 085E> 1 0 0