Hey yal. Me again, how to use key item. I need to use spesific key item so I need to call variable to that specific key item to use in script
Viewing post in Yal's Monster Collector Engine comments
Fundamentally, all items work the same and the category is just for sorting. You just need to give the key item a validflag for using in field, a use_script and an use_arg and it should become usable. The actual functionality would be in the use_script, and if you don't need the use_arg you can just ignore it in the script.
(Check out init_items if that explanation didn't make sense)
I'm reading your question as "you need to find 2 separate potions to unlock a cutscene" and then you'd do something like,
if(inventory_has_item(FIRST_POTION) && inventory_has_item(SECOND_POTION)){
csc_enqueue( ... ) //stuff from the good cutscene where you cure the sick grandma)
}
else{
csc_enqueue( ... ) //stuff from the bad cutscene where you're told you need to find both the potions
}If it's two of the same potion you'd use inventory_has_item(POTION,2) (it can check for specific quantity)