Current time: 05.12.2019, 20:21 Hello There, Guest! (LoginRegister)
Language: english | russian  

Post Reply 
Threaded Mode | Linear Mode
Questions and Answers
Author Message
Valery Offline

Posts: 1931
Post: #224

Thank you Grayface.

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.


Era mods and utilities
(This post was last modified: 15.08.2009 22:45 by Valery.)
15.08.2009 22:12
Find all posts by this user Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Questions and Answers - RamonXick - 25.09.2008, 17:20
RE: Questions and Answers - Darty - 23.05.2009, 03:21
RE: Questions and Answers - Valery - 23.05.2009, 04:55
RE: Questions and Answers - Darty - 23.05.2009, 13:35
RE: Questions and Answers - Darkloke - 23.05.2009, 17:06
RE: Questions and Answers - Darty - 24.05.2009, 21:34
RE: Questions and Answers - Darkloke - 24.05.2009, 21:57
RE: Questions and Answers - Darty - 24.05.2009, 22:14
RE: Questions and Answers - Corwin - 24.05.2009, 22:59
RE: Questions and Answers - Darty - 25.05.2009, 00:05
RE: Questions and Answers - Corwin - 25.05.2009, 00:40
RE: Questions and Answers - Darty - 25.05.2009, 03:20
RE: Questions and Answers - Valery - 25.05.2009, 10:49
RE: Questions and Answers - Berserker - 25.05.2009, 23:00
RE: Questions and Answers - Valery - 26.05.2009, 02:28
RE: Questions and Answers - Valery - 28.05.2009, 04:31
RE: Questions and Answers - Darkloke - 28.05.2009, 10:02
RE: Questions and Answers - Valery - 28.05.2009, 10:16
RE: Questions and Answers - Darkloke - 28.05.2009, 18:02
RE: Questions and Answers - major - 28.05.2009, 13:38
RE: Questions and Answers - Valery - 28.05.2009, 20:59
RE: Questions and Answers - Qwertyus - 29.05.2009, 00:10
RE: Questions and Answers - Valery - 29.05.2009, 00:48
RE: Questions and Answers - Qwertyus - 29.05.2009, 02:45
RE: Questions and Answers - Valery - 29.05.2009, 03:00
RE: Questions and Answers - Qwertyus - 29.05.2009, 03:14
RE: Questions and Answers - Valery - 29.05.2009, 04:27
RE: Questions and Answers - Valery - 29.05.2009, 07:12
RE: Questions and Answers - Valery - 05.06.2009, 12:15
RE: Questions and Answers - Berserker - 05.06.2009, 19:14
RE: Questions and Answers - Valery - 05.06.2009, 22:57
RE: Questions and Answers - Berserker - 05.06.2009, 23:08
RE: Questions and Answers - Berserker - 05.06.2009, 23:24
RE: Questions and Answers - Valery - 06.06.2009, 00:13
RE: Questions and Answers - Berserker - 06.06.2009, 00:18
RE: Questions and Answers - Valery - 06.06.2009, 00:46
RE: Questions and Answers - Berserker - 06.06.2009, 02:35
RE: Questions and Answers - Valery - 06.06.2009, 02:46
RE: Questions and Answers - Berserker - 06.06.2009, 03:56
RE: Questions and Answers - Valery - 06.06.2009, 07:47
RE: Questions and Answers - Ganymed - 06.06.2009, 13:15
RE: Questions and Answers - Valery - 06.06.2009, 13:35
RE: Questions and Answers - Ganymed - 06.06.2009, 14:23
RE: Questions and Answers - Valery - 14.06.2009, 10:27
RE: Questions and Answers - Berserker - 14.06.2009, 12:04
RE: Questions and Answers - Valery - 06.07.2009, 21:39
RE: Questions and Answers - Qwertyus - 06.07.2009, 23:40
RE: Questions and Answers - Valery - 07.07.2009, 00:50
RE: Questions and Answers - Qwertyus - 07.07.2009, 01:16
RE: Questions and Answers - Valery - 07.07.2009, 01:43
RE: Questions and Answers - Qwertyus - 07.07.2009, 02:05
RE: Questions and Answers - Valery - 07.07.2009, 10:07
RE: Questions and Answers - Darkloke - 07.07.2009, 16:48
RE: Questions and Answers - MOP - 07.07.2009, 18:54
RE: Questions and Answers - Valery - 07.07.2009, 19:28
RE: Questions and Answers - Qwertyus - 07.07.2009, 19:42
RE: Questions and Answers - Valery - 07.07.2009, 19:56
RE: Questions and Answers - Qwertyus - 07.07.2009, 20:06
RE: Questions and Answers - Valery - 07.07.2009, 20:11
RE: Questions and Answers - Qwertyus - 07.07.2009, 20:22
RE: Questions and Answers - Valery - 07.07.2009, 20:34
RE: Questions and Answers - Qwertyus - 07.07.2009, 21:24
RE: Questions and Answers - Valery - 07.07.2009, 22:29
RE: Questions and Answers - Valery - 15.07.2009, 05:44
RE: Questions and Answers - Berserker - 15.07.2009, 05:49
RE: Questions and Answers - Valery - 15.07.2009, 06:09
RE: Questions and Answers - Berserker - 15.07.2009, 06:27
RE: Questions and Answers - Valery - 15.07.2009, 06:37
RE: Questions and Answers - Valery - 30.07.2009, 13:16
RE: Questions and Answers - GrayFace - 06.08.2009, 23:32
RE: Questions and Answers - Valery - 07.08.2009, 19:14
RE: Questions and Answers - Berserker - 30.07.2009, 13:23
RE: Questions and Answers - Valery - 30.07.2009, 13:28
RE: Questions and Answers - Berserker - 30.07.2009, 13:33
RE: Questions and Answers - Valery - 30.07.2009, 14:40
RE: Questions and Answers - Berserker - 30.07.2009, 14:54
RE: Questions and Answers - Valery - 30.07.2009, 15:11
RE: Questions and Answers - Berserker - 30.07.2009, 15:15
RE: Questions and Answers - Valery - 30.07.2009, 15:19
RE: Questions and Answers - Berserker - 30.07.2009, 15:40
RE: Questions and Answers - Valery - 30.07.2009, 17:13
RE: Questions and Answers - Berserker - 30.07.2009, 20:03
RE: Questions and Answers - DeJay - 01.08.2009, 00:27
RE: Questions and Answers - Berserker - 01.08.2009, 13:53
RE: Questions and Answers - Valery - 05.08.2009, 11:36
RE: Questions and Answers - Qwertyus - 06.08.2009, 01:02
RE: Questions and Answers - Valery - 07.08.2009, 19:36
RE: Questions and Answers - Berserker - 07.08.2009, 20:18
RE: Questions and Answers - Valery - 07.08.2009, 20:31
RE: Questions and Answers - GrayFace - 08.08.2009, 02:13
RE: Questions and Answers - Valery - 08.08.2009, 08:50
RE: Questions and Answers - GrayFace - 09.08.2009, 16:04
RE: Questions and Answers - Valery - 15.08.2009 22:12
RE: Questions and Answers - Valery - 02.10.2009, 18:53
RE: Questions and Answers - Valery - 15.10.2009, 13:43
RE: Questions and Answers - Berserker - 15.10.2009, 17:13
RE: Questions and Answers - Valery - 15.10.2009, 19:05
RE: Questions and Answers - GrayFace - 16.10.2009, 19:49
RE: Questions and Answers - Valery - 16.10.2009, 20:04
RE: Questions and Answers - gamecreator - 16.10.2009, 21:22
RE: Questions and Answers - Valery - 16.10.2009, 22:19
RE: Questions and Answers - gamecreator - 16.10.2009, 22:59
RE: Questions and Answers - Valery - 16.10.2009, 23:18
RE: Questions and Answers - UksusoFF - 17.10.2009, 00:20
RE: Questions and Answers - Berserker - 17.10.2009, 09:38
RE: Questions and Answers - Valery - 17.10.2009, 14:26
RE: Questions and Answers - GrayFace - 18.10.2009, 20:24
RE: Questions and Answers - Valery - 18.10.2009, 20:31
RE: Questions and Answers - gamecreator - 18.10.2009, 22:45
RE: Questions and Answers - Valery - 18.10.2009, 23:06
RE: Questions and Answers - GrayFace - 19.10.2009, 13:41
RE: Questions and Answers - Valery - 19.10.2009, 15:23
RE: Questions and Answers - Valery - 20.10.2009, 02:16
RE: Questions and Answers - GrayFace - 20.10.2009, 15:46
RE: Questions and Answers - Valery - 20.10.2009, 18:19
RE: Questions and Answers - Astaroth - 21.10.2009, 01:53
RE: Questions and Answers - Valery - 21.10.2009, 02:01
RE: Questions and Answers - Astaroth - 21.10.2009, 15:27
RE: Questions and Answers - Astaroth - 21.10.2009, 17:31
RE: Questions and Answers - Valery - 21.10.2009, 22:01
RE: Questions and Answers - Valery - 21.10.2009, 23:00
RE: Questions and Answers - Astaroth - 21.10.2009, 23:17
RE: Questions and Answers - Valery - 21.10.2009, 23:20
RE: Questions and Answers - Astaroth - 23.10.2009, 02:12
RE: Questions and Answers - Valery - 28.10.2009, 01:49
RE: Questions and Answers - Valery - 23.10.2009, 02:33
RE: Questions and Answers - Astaroth - 23.10.2009, 02:37
RE: Questions and Answers - GrayFace - 23.10.2009, 04:12
RE: Questions and Answers - Valery - 23.10.2009, 06:54
RE: Questions and Answers - Valery - 25.10.2009, 03:57
RE: Questions and Answers - gamecreator - 25.10.2009, 11:58
RE: Questions and Answers - GrayFace - 25.10.2009, 14:00
RE: Questions and Answers - Valery - 25.10.2009, 17:15
RE: Questions and Answers - gamecreator - 25.10.2009, 23:32
RE: Questions and Answers - Valery - 25.10.2009, 23:55
RE: Questions and Answers - gamecreator - 26.10.2009, 00:11
RE: Questions and Answers - gamecreator - 26.10.2009, 00:30
RE: Questions and Answers - Valery - 26.10.2009, 07:21
RE: Questions and Answers - Berserker - 26.10.2009, 16:21
RE: Questions and Answers - Valery - 26.10.2009, 19:31
RE: Questions and Answers - GrayFace - 27.10.2009, 23:46
RE: Questions and Answers - Valery - 28.10.2009, 00:48
RE: Questions and Answers - Valery - 28.10.2009, 05:19
RE: Questions and Answers - Astaroth - 28.10.2009, 18:23
RE: Questions and Answers - Valery - 28.10.2009, 21:59
RE: Questions and Answers - Astaroth - 29.10.2009, 11:32
RE: Questions and Answers - Astaroth - 29.10.2009, 11:43
RE: Questions and Answers - Valery - 29.10.2009, 12:43
RE: Questions and Answers - Astaroth - 29.10.2009, 18:07
RE: Questions and Answers - Valery - 30.10.2009, 14:11
RE: Questions and Answers - gamecreator - 30.10.2009, 16:16
RE: Questions and Answers - Valery - 30.10.2009, 16:42
RE: Questions and Answers - Astaroth - 30.10.2009, 17:18
RE: Questions and Answers - Valery - 30.10.2009, 17:27
RE: Questions and Answers - Berserker - 30.10.2009, 17:49
RE: Questions and Answers - Valery - 30.10.2009, 17:52
RE: Questions and Answers - Astaroth - 30.10.2009, 20:13
RE: Questions and Answers - Valery - 30.10.2009, 20:16
RE: Questions and Answers - Berserker - 06.11.2009, 22:06
RE: Questions and Answers - Valery - 06.11.2009, 22:21
RE: Questions and Answers - Berserker - 06.11.2009, 23:12
RE: Questions and Answers - Valery - 06.11.2009, 23:22
RE: Questions and Answers - Valery - 17.11.2009, 19:26
RE: Questions and Answers - Valery - 10.12.2009, 00:38
RE: Questions and Answers - Valery - 12.12.2009, 10:37
RE: Questions and Answers - Berserker - 12.12.2009, 16:20
RE: Questions and Answers - Valery - 12.12.2009, 16:36
RE: Questions and Answers - Valery - 13.12.2009, 07:52
RE: Questions and Answers - GrayFace - 13.12.2009, 11:27
RE: Questions and Answers - Valery - 13.12.2009, 11:36
RE: Questions and Answers - Valery - 21.12.2009, 14:21
RE: Questions and Answers - Valery - 31.12.2009, 01:34
RE: Questions and Answers - Berserker - 31.12.2009, 03:24
RE: Questions and Answers - Valery - 31.12.2009, 04:06
RE: Questions and Answers - Valery - 02.01.2010, 03:32
RE: Questions and Answers - Valery - 08.01.2010, 14:45
RE: Questions and Answers - Berserker - 08.01.2010, 18:02
RE: Questions and Answers - Valery - 08.01.2010, 19:21
RE: Questions and Answers - Valery - 13.01.2010, 01:26
RE: Questions and Answers - Valery - 27.02.2010, 07:21
RE: Questions and Answers - Valery - 04.03.2010, 00:00
RE: Questions and Answers - DeJay - 29.06.2010, 02:28
RE: Questions and Answers - Valery - 29.06.2010, 04:44
RE: Questions and Answers - DeJay - 29.06.2010, 04:48
RE: Questions and Answers - gamecreator - 29.06.2010, 12:15
RE: Questions and Answers - DeJay - 08.07.2010, 18:08
RE: Questions and Answers - packa - 03.05.2011, 13:39
RE: Questions and Answers - Heroesmaster - 20.10.2012, 18:28
RE: QUESTION... - Dikkekoninghenk - 26.09.2008, 18:22
RE: QUESTION... - GrayFace - 26.09.2008, 18:52
RE: QUESTION... - Berserker - 26.09.2008, 19:04
RE: QUESTION... - Dikkekoninghenk - 27.09.2008, 19:41
RE: QUESTION... - Dairy - 28.09.2008, 05:03
RE: QUESTION... - RamonXick - 28.09.2008, 08:14
RE: QUESTION... - Corwin - 28.09.2008, 12:15
RE: QUESTION... - Dairy - 28.09.2008, 16:03
RE: QUESTION... - Dikkekoninghenk - 28.09.2008, 21:52
RE: QUESTION... - RamonXick - 29.09.2008, 07:48
RE: QUESTION... - Berserker - 29.09.2008, 10:56
RE: Question - Dikkekoninghenk - 29.09.2008, 15:41
RE: Question - Dairy - 02.10.2008, 22:03
RE: Question - Corwin - 03.10.2008, 01:42
RE: Question - Dairy - 03.10.2008, 03:16
RE: Question - GrayFace - 03.10.2008, 03:56
RE: Question - Dairy - 03.10.2008, 05:27
RE: Question - Corwin - 03.10.2008, 11:31
RE: Question - Dikkekoninghenk - 03.10.2008, 17:16
RE: Question - GrayFace - 03.10.2008, 23:09
RE: Question - major - 03.10.2008, 23:20
RE: Question - Dikkekoninghenk - 04.10.2008, 17:57
RE: Question - GrayFace - 05.10.2008, 00:45
RE: Question - Dikkekoninghenk - 06.10.2008, 22:19
RE: Question - Corwin - 08.10.2008, 14:02
RE: Question - Dikkekoninghenk - 08.10.2008, 15:37
RE: Question - RamonXick - 12.10.2008, 06:39
RE: Question - Corwin - 12.10.2008, 15:42
RE: Question - Dikkekoninghenk - 20.10.2008, 04:31
RE: Question - GrayFace - 20.10.2008, 20:58
RE: Question - RamonXick - 21.10.2008, 08:10
RE: Question - GrayFace - 21.10.2008, 17:24
RE: Question - Dairy - 23.10.2008, 04:46
RE: Question - Berserker - 23.10.2008, 10:21
RE: Question - Corwin - 23.10.2008, 13:37
RE: Question - GrayFace - 23.10.2008, 14:28
RE: Questions - Dikkekoninghenk - 24.10.2008, 11:28
RE: Questions - Berserker - 24.10.2008, 11:46
What is wrong about WoG? - Totoro - 31.01.2009, 14:54
RE: What is wrong about WoG? - BAD - 31.01.2009, 17:48
RE: What is wrong about WoG? - Berserker - 08.02.2009, 18:07
RE: What is wrong about WoG? - Darty - 22.03.2009, 14:48
RE: What is wrong about WoG? - Berserker - 22.03.2009, 17:57
RE: What is wrong about WoG? - Darty - 22.03.2009, 22:10
RE: What is wrong about WoG? - Berserker - 22.03.2009, 23:21
RE: What is wrong about WoG? - Darty - 24.03.2009, 17:17
RE: What is wrong about WoG? - Berserker - 24.03.2009, 18:48
RE: What is wrong about WoG? - Darty - 24.03.2009, 19:57
RE: What is wrong about WoG? - Berserker - 26.03.2009, 01:19
RE: What is wrong about WoG? - Phoessus - 06.05.2009, 14:54
RE: What is wrong about WoG? - gamecreator - 07.05.2009, 13:22
RE: Questions - %username% - 14.02.2009, 23:28
RE: Questions - jadedking - 28.02.2009, 13:38
RE: Question - Doom3d - 28.02.2009, 23:48
RE: Questions - Corwin - 03.03.2009, 15:49
RE: Questions - DeJay - 03.03.2009, 23:53
RE: Questions - Corwin - 04.03.2009, 14:47
RE: Questions - Darty - 13.03.2009, 20:40
RE: Questions - Efrit - 13.03.2009, 21:03
RE: Questions - Flashback - 13.03.2009, 21:15
RE: Questions - Darty - 14.03.2009, 00:34
RE: Questions - GrayFace - 14.03.2009, 15:19
RE: Questions - Darty - 14.03.2009, 15:23
RE: Questions - Corwin - 14.03.2009, 15:44
RE: Questions - Darty - 14.03.2009, 18:39
RE: Questions - The Hai - 29.03.2009, 16:19
RE: Questions - Darkloke - 29.03.2009, 18:43
RE: Questions - The Hai - 29.03.2009, 19:27
RE: Questions - Corwin - 30.03.2009, 00:06
RE: Questions - The Hai - 30.03.2009, 00:29
RE: Questions - Berserker - 30.03.2009, 06:08
RE: Questions - The Hai - 30.03.2009, 20:07
RE: Questions - Berserker - 31.03.2009, 01:29
RE: Questions - The Hai - 31.03.2009, 02:25
RE: Questions - The Hai - 31.03.2009, 18:06
RE: Questions - Corwin - 31.03.2009, 22:30
RE: Questions - The Hai - 31.03.2009, 22:37
RE: Questions - Blackened - 05.04.2009, 14:05
RE: Questions - The Hai - 05.04.2009, 14:56
RE: Questions - Darty - 05.04.2009, 15:02
RE: Questions - The Hai - 05.04.2009, 15:13
RE: Questions - Blackened - 05.04.2009, 16:16
RE: Questions - The Hai - 05.04.2009, 19:06
RE: Questions - Darty - 06.04.2009, 02:26
RE: Questions - Blackened - 06.04.2009, 14:44
RE: Questions - Darty - 06.04.2009, 14:55
RE: Questions - The Hai - 06.04.2009, 22:50
RE: Questions - Darty - 07.04.2009, 01:26
RE: Questions - The Hai - 07.04.2009, 04:48
RE: Questions - Efrit - 07.04.2009, 08:41
RE: Questions - Blackened - 07.04.2009, 13:38
RE: Questions - Darty - 07.04.2009, 13:43
RE: Questions - The Hai - 07.04.2009, 19:54
RE: Questions - Blackened - 16.04.2009, 16:39
RE: Questions - Valery - 16.04.2009, 17:12
RE: Questions - Berserker - 16.04.2009, 21:52
RE: Questions - Corwin - 17.04.2009, 00:15
RE: Questions - Blackened - 17.04.2009, 00:24
RE: Questions - Valery - 17.04.2009, 02:08
RE: Questions - Darty - 22.04.2009, 17:28
RE: Questions - Darkloke - 22.04.2009, 18:43
RE: Questions - Valery - 28.04.2009, 03:13
RE: Questions - Berserker - 28.04.2009, 04:18
RE: Questions - Valery - 28.04.2009, 06:04
RE: Questions - Valery - 29.04.2009, 00:59
RE: Questions - Berserker - 29.04.2009, 01:11
RE: Questions - Valery - 29.04.2009, 07:07
RE: Questions - Berserker - 29.04.2009, 07:24
RE: Questions - Valery - 30.04.2009, 03:59
RE: Questions - Valery - 30.04.2009, 06:05
RE: Questions - Berserker - 30.04.2009, 09:42
RE: Questions - Valery - 30.04.2009, 10:15
RE: Questions - Valery - 30.04.2009, 20:24
RE: Questions - Berserker - 30.04.2009, 22:11
RE: Questions - Valery - 30.04.2009, 23:13
RE: Questions - Valery - 01.05.2009, 23:14
RE: Questions - Berserker - 02.05.2009, 00:23
RE: Questions - Corwin - 02.05.2009, 17:02
RE: Questions - Valery - 03.05.2009, 04:45
RE: Questions - major - 03.05.2009, 11:28
RE: Questions - Valery - 04.05.2009, 16:50
RE: Questions - major - 04.05.2009, 17:07
RE: Questions - Valery - 05.05.2009, 05:56
RE: Questions - Corwin - 05.05.2009, 11:56
RE: Questions - Valery - 05.05.2009, 12:30
RE: Questions - Darkloke - 05.05.2009, 12:32
RE: Questions - major - 07.05.2009, 21:30
RE: Questions - Valery - 07.05.2009, 22:37
RE: Questions - major - 08.05.2009, 14:16
RE: Questions - Valery - 08.05.2009, 14:21
RE: Questions - major - 08.05.2009, 14:41
Battle faction flags - Valery - 14.01.2011, 06:29
RE: Battle faction flags - pHOMM - 15.02.2011, 13:37
RE: Battle faction flags - etoprostoya - 15.02.2011, 16:55
RE: Battle faction flags - pHOMM - 15.02.2011, 17:25

Forum Jump:

Powered by MyBB Copyright © 2002-2019 MyBB Group