SRL Archive - OSR Help

Finding bank objects


purerange86

2014-03-04 17:36:21

Hey, so I am currently trying to find objects in the bank, but apparently this line is not returning true:

if finddtm(item1dtm,a,b,msx1,msy1,msx2,msy2) and finddtm(item2dtm,x,y,msx1,msy1,msx2,msy2) then begin 

I have tested the DTMS and they both work, and I am trying to find objects in the bank. All variables are defined, any reason this would not work?

Ian

2014-03-04 17:44:22

Make sure that you've declared your DTMs.

purerange86

2014-03-04 18:56:25

WOWOW

Derp.

Forgot to add loaddtms in my main…

Thanks :) resolved

Ian

2014-03-04 19:12:51

No problem, good luck on the script! :)

Countan

2014-03-06 07:05:02

Also, you may want to use a variation of FindDTM which is more accurate.

Say for instance you rotate the screen a bit, your DTM may not be found because of the angle.

Brotein

2014-03-06 09:12:41

From: Countan
Also, you may want to use a variation of FindDTM which is more accurate.

Say for instance you rotate the screen a bit, your DTM may not be found because of the angle.


How would rotating the screen ever affect the DTMs of an item in a bank interface?

Pakyakkistan

2014-03-07 09:04:26

From: Countan
Also, you may want to use a variation of FindDTM which is more accurate.

Say for instance you rotate the screen a bit, your DTM may not be found because of the angle.


The bank screen is a static 'Main Screen' menu point. It's position never changes with camera angle or movement. So camera angle will not affect this, just, FYI!

@purerange86;
Just so you know as well, in the includes section of the procedures list we have a withdraw from bankdtm something or nother for withdrawing or locating items within your bank screen. Simplifies this for you other then using FindDTM, you may look into it!