Can not for the life of me find anything related to health bars on the stealth site. I am just brainstorming but want criticism.
////finding orange on screen/////
if FindNotoriety($190,6) > 5 then
begin
//having trouble here
AddToSystemJournal(IntToStr(LastTarget()));
procedure LastTarget
function TargetID: Cardinal
if targetpresent then
begin
TargetToXYZ(X,Y,Z); //do i define this to multiple areas or can i place it at one spot and they will stack together when put together?
end;
end;
Just looking at the code, a few mistakes you probably made:
if FindNotoriety($190,6) > 5 then
The proper way to use this would be:
if FindNotoriety($190,x) > 0 then
Where x would be the number to check for, according to the notoriety table.
And then here:
procedure LastTarget
function TargetID: Cardinal
if targetpresent then
begin
TargetToXYZ(X,Y,Z); //do i define this to multiple areas or can i place it at one spot and they will stack together when put together?
end;
A procedure or function should be declared outside of the main program loop, and then 'called' from the main program.
Here you're declaring the beginning of a procedure, and then declaring a function inside it, and all that just in the middle of the program. It's probably not gonna compile like this.
