MV Draw a line from one event to another, and toggle them on and off.

I'm looking for a plugin that will draw a line from one event to another. Ideally you could specify the color and thickness of the lines, and visually toggle them on and off via script or command. (RMMV). Thanks.
Sounds like something you could do with eventing in under 2 minutes.
This explanation from @Eliaquim was the best I could think of, I can create a Plugin using this, but unfortunately I don't have time.

Sounds like something you could do with eventing in under 2 minutes.

Neat.


This explanation from @Eliaquim was the best I could think of, I can create a Plugin using this, but unfortunately I don't have time.

Thanks for the reply. I had already messed around with that, but it doesn't really work for my needs specifically. For one thing, while it does draw a line on the screen, that line stays with the screen, not its position on the map, meaning that as your character moves across the map, the line moves with it. Also, I need a way to toggle the visibility of the lines off and on.

I was hoping there was a full fledged plugin out there, but it doesn't look like there is. At least I haven't been able to find one. The closest thing I've found that sort of works for my purposes is Galv's Map Projectiles, which, if you have the projectiles firing fast enough, it effectively "draws a line" from one event to another. And it looks cool too. But there are some problems with that plugin as well.
Erase the line and constantly draw it so that it looks like it's following the map, just put a Wait of 10 to prevent frame loss.
JavaScript:
myLine.clear()
I see what you're saying. That makes sense. Thanks!
The parameter was wrong, the set must be 0,0 as it is the drawing limit point of the screen (Canvas).
"moveTo" stands as the "event" or player and "lineTo" as the other object on the map:

Code:
◆Script:myLine = new PIXI.Graphics()
◆Loop
  ◆Control Variables:#0011 X-Player = Screen X of Player
  ◆Control Variables:#0012 Y-Player = Screen Y of Player
  ◆Control Variables:#0013 X-MapEv = Screen X of This Event
  ◆Control Variables:#0014 Y-MapEv = Screen Y of This Event
  ◆Script:myLine.clear()
  :      :SceneManager._scene.addChild(myLine)
  :      :myLine.position.set(0, 0)
  :      :myLine.lineStyle(10 , 0xffffff)
  :      :.moveTo($gameVariables.value(11), $gameVariables.value(12))
  :      :.lineTo($gameVariables.value(13), $gameVariables.value(14))
  ◆Wait:1 frame
  ◆
:Repeat Above
The parameter was wrong, the set must be 0,0 as it is the drawing limit point of the screen (Canvas).
"moveTo" stands as the "event" or player and "lineTo" as the other object on the map:

Wow. That was extremely helpful. I really appreciate it!
Glad I could help.
If you want to make the radius come out from a higher point, subtract some value from the Y variables:
Code:
  ◆Control Variables:#0011 X-Player = Screen X of Player
  ◆Control Variables:#0012 Y-Player = Screen Y of Player
  ◆Control Variables:#0012 Y-Player -= 8
  ◆Control Variables:#0013 X-MapEv = Screen X of This Event
  ◆Control Variables:#0014 Y-MapEv = Screen Y of This Event
  ◆Control Variables:#0014 Y-MapEv -= 8

Original thread: https://forums.rpgmakerweb.com/threads/draw-a-line-from-one-event-to-another-and-toggle-them-on-and-off.138630/