Mirage Engine
Copy Map NPCs in Properties - Printable Version

+- Mirage Engine (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: Resources (https://mirage-engine.uk/forums/forumdisplay.php?fid=49)
+---- Thread: Copy Map NPCs in Properties (/showthread.php?tid=64)



Copy Map NPCs in Properties - Tutorial Bot - 01-06-2006

Author: Renegade
Difficulty: 1/5

This basically adds a "copy" button for NPCs in the map editor. Instead of going through the list each time to place the same monster, you just click a button and it copies the NPC just above it.

:: CLIENT SIDE ::
In frmMapProperties, make a command button called
Code:
cmdCopy
Add this code to it:
Code:
Private Sub CmdCopy_Click(Index As Integer)
    cmbNpc(Index + 1).ListIndex = cmbNpc(Index).ListIndex
End Sub
Thats it, do it as many times as you want