I have another question, but keep in mind I never studied any programming so I would need more of a detailed explanation and I am sorry if this bothers you. Anyway, if someone is kind and patient, I need some advices on the next code:
[Store hero's coordinates in y11/y12/y13]
!!HEy8:P?y11/?y12/?y13;
[Calculate distance to object - store in y15]
!!VRy14:Sy11 -y1; [(x1-x2)]
!!VRy14:*y14; [* (x1-x2)]
!!VRy15:Sy12 -y2; [(y1-y2)]
!!VRy15:*y15; [* (y1-y2)]
!!VRy15:+y14; [(x1-x2)*(x1-x2) + (y1-y2)*(y1-y2)]
This is a code from sorcery II script. I am pretty familiar with variables within a function, except with x1, x2 and so on.
From where are they coming on? How Fnord is implying that :
!!VRy14:Sy11 -y1;
has inside the x1-x2 body?
Basically how he calculate the distance from hero to the object.
Thank you for patience :)
ALso: GrayFace or Berserker, there is that patch for making bigger or smaller maps. I was able to create 18x18 and 9000x9000 maps with it. However there are many visual glitches with the minimap, and maps can be played, but not open. Maybe one of you is enough skilled to have a look into it? It would be a huge step if it would work.
(This post was last modified: 15.08.2009 22:45 by Valery.)