Thanks EN, I see what you mean. I think it works because the finditems are working correctly enough that they have overcome the flaw. The key seems to be to attempt the DropPD until it works correctly and I was only doing it once in my earlier version.
I am not super familiar with the "While" command. Based on your post I am guessing that it runs the following bracket until the condition is met. Nice lesson for me. How about this modification to include the secure check as well as the backpack check?
Sub EquipWeapon
set !EquipType %1
Finditem !EquipType C_ , #CharID
while #findcnt = 0
{
Finditem !EquipType C_ , #backpackid
If #findcnt = 0
{
Finditem !EquipType C_ , %Secure
If #findcnt = 0
{
Display You are out of weapon type %1. Stock more in your secure and restart. You made EN SAD by not making more weapons when you set up the script.
Halt ; this is a sad way to end a script imho should be only ONE halt command in the entire script
}
}
set !ToEquip #findid
ExEvent Drag !ToEquip
ExEvent DropPD
Wait 25
Finditem !EquipType C_ , #CharID
}
return
Any suggestions for what I do when I hit this dead end? maybe a pause instead? I don't want to keep my toons wrestling, chewing up resources for no gain...