I have a question: I need a code which allows searching for a specific object on map, and each key press shows next object. So the loop must be stopped each time.
So far testing with artifacts. it works well but I get the "UN:U can't get more objects" error when all artifacts of that class were found and I press once more. I must surely miss something, please tell me where.
- !#VRv8900:S1;
- [...key press]...
- !!SN:W^Findme_Artifact_class^/?y1;
- !!if&y1>-1:;
- !!UN:U5/-1/?y-1;
- !!VRv2:S-1;
- !!DO9990004/1/y-1/1&y-1>0/v8900<y-1:P5/y1;
- !!FU:E;
- !!en:;
-
- !?FU9990004;
- !!UN:Ux1/-1/v8900/2;
- !!OB2:U?y2;
- !!UN:Ay2/3/?y3;
- !!VRv8900:+1;
- !!FU&y3<>x2:E;
- !!UN:Lv2/v3/v4/10;
- !!VRx16:S999;
The error doesn't occur when I take out class checks, 15 artis on map, v8900 increments by 1 each time, after 15 searches all normal.