To anyone who loves the MOBA genre, i considered creating my own NWN module around the tower defense setting. But i kinda suck at scripting.
1# So far i've been unable to make my ''minions'' spawn at regular intervals. I can set them to respawn 30 seconds after death, but i want to to ALWAYS spawn every 30 seconds, even if there is already a wave up.
2# Another minion problem. How do i make them walk across the map? Ive seen some script that can make them walk to another point in the map, which would be fine for the mid lane, but what about the top and bottom lane? Anyone knows a script that would make them walk throught different checkpoints while STILL attacking enemy NPCs/PCs on sight?
3# I've set two different factions, the blue faction and the red faction. As far as minion goes, they attack each other properly. I've also created a starting area that allows the player to select either the blue or the red side(By porting there), but that's as far as i was able to go. How can i make players join a specific faction? If they join the blue side, the red side should become hostile and the blue side should be friendly-fireproof.
#1
CreateObject combined with recursive delayed function. It should look like this
void SpawnMinions()
{
if(GetFirstPC() == OBJECT_INVALID || GetLocalInt(GetModule(),"GAME_OVER")) return;
object oRed1 = GetWaypointByTag("blabla");
object oRed2 = GetWaypointByTag("blabla");
object oRed3 = GetWaypointByTag("blabla");
object oBlue1 = GetWaypointByTag("blabla");
object oBlue2 = GetWaypointByTag("blabla");
object oBlue3 = GetWaypointByTag("blabla");
CreateObject("minionred",GetLocation(oRed1));
CreateObject("minionred",GetLocation(oRed1));
CreateObject("minionred",GetLocation(oRed1));
CreateObject("minionred",GetLocation(oRed2));
CreateObject("minionred",GetLocation(oRed2));
CreateObject("minionred",GetLocation(oRed2));
and so on
DelayCommand(30.0,SpawnMinions());
}
#2
They will move automatically if you setup waypoints matching WP_tagofminion_X where X = 01 - how much you need. Try paint the minion into area, then select him and then right click anywhere on map you should get an option create waypoint, if you do this it will bind it with minion, after that you can delete minion. Also this means you need special blueprint for midlane/botlane/toplane minions
#3 you need to use SetPCDislike/SetPCLike functions.