But it doesn't prevent player from taking out items from inventory (whatever the hell you meant by that), only signals that there's more than one of each of three items. Also, as soon as it happens, the script stops checking. Whether it is what you intend it to do, I have no idea.
I was planning on just starting the script via dialogue then stopping the script via dialogue so when the player talks to the npc it checks the players inventory each time.
Hey thanks with the above script! That seems a lot simplier. This is what I got but for whatever reason it's not checking the players inventory. I have it set up for dialogue to when the npcs ask the player if they have the items "yes" and "no" if you select "yes" there is a global variable check for < 10 and >= 10. This is what I have thanks to you, but it doesn't seem to check the players inventory. If i select "yes" it thinks i don't have the items when i do. What is up with that?
Begin GlassArmorScript short glass set glass to 0 if ( player->getitemcount, "SM_glass_cuirass" >= 2 ) Set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_boots" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_helm" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_pauldron_left" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_pauldron_right" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_bracer_left" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_bracer_right" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_greaves" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_shield" >= 2 ) set glass to glass + 1 endif If ( player->getitemcount, "SM_glass_towershield" >= 2 ) set glass to glass + 1 endif If ( glass >= 10 ) stopscript Glassarmorscript endif end
@Gforcebond
A bit off topic, but it makes your scripts easier to read it they have proper (e.g. Consistent) indentation. This can indent scripts for you.
thanks that helps