Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC Vs. NPC
#1
Has anyone considered doing this? Would it be hard? Any ideas on how to go about it, I'm quite interested seeing as I may be working on a game here shortly.
Reply
#2
If you just want basic attacking, then you could essentially copy the current code for attacking players and replace it all for npcs.
Reply
#3
Dugor Wrote:If you just want basic attacking, then you could essentially copy the current code for attacking players and replace it all for npcs.

Really? Sounds easy... Probably just a lot to copy. Thanks though. Smile
Reply
#4
Code:
Type MapNpcRec
    Num As Integer
    
    Target As Integer
    
    HP As Long
    MP As Long
    SP As Long
        
    x As Byte
    y As Byte
    Dir As Integer
    
    ' For server use only
    SpawnWait As Long
    AttackTimer As Long
End Type
Npcs can attack only other players by now.
First you need to be able to specify if you are attacking a Player or an other NPC. Do this the same way players do it, adding the "TargetType As Byte" to the npc's type.
Reply
#5
This would be good for "factions".
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)