[Scummvm-devel] Maniac Mansion (few fix's and the game is kinda completable)

Robert Crossfield segra at iprimus.com.au
Fri May 23 17:12:03 CEST 2003


omg, i understand now ;)

getObjActToObjActDist returns the distance between actors/actors or objects right?
well, var[1] is set to 3 after getClosestObjActor finishs, Dave is actor 3.
without deviding the X returned by getObjActToObjActDist var[1] is set to 255, im guessing that means no actor or something....
the value returned with no dividing is 440, with its 55, Not sure if that has any relivance or not just thought I would mention it ;)


[0001] (66) Var[1] = getClosestObjActor(10)
[0005] (48) if (Var[1] == 255) {


get closest obj/actor to actor 10 (nurse edna)
which ofcourse Dave is when your using him ;)

255 should be returned to Var[1] if Nurse Edna isnt in the room so that the script doesnt execute.

Hopefully this helps ;0

cheers, 

segra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20030523/c3c267de/attachment.html>


More information about the Scummvm-devel mailing list