Mirage Source

Free ORPG making software.
It is currently Wed May 22, 2024 7:18 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: NPC Vs. NPC
PostPosted: Wed Apr 22, 2009 11:19 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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.

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: NPC Vs. NPC
PostPosted: Wed Apr 22, 2009 11:30 pm 
Offline
Pro
User avatar

Joined: Tue Nov 13, 2007 2:42 pm
Posts: 509
If you just want basic attacking, then you could essentially copy the current code for attacking players and replace it all for npcs.


Top
 Profile  
 
 Post subject: Re: NPC Vs. NPC
PostPosted: Wed Apr 22, 2009 11:35 pm 
Offline
Persistant Poster
User avatar

Joined: Thu Jul 24, 2008 6:42 am
Posts: 703
Google Talk: infectiousbyte@gmail.com
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. :)

_________________
Image
GIAKEN wrote:
Since I'm into men, not women

GIAKEN wrote:
I can't take these huge penises anymore! All that's left is shame! And blood


Top
 Profile  
 
 Post subject: Re: NPC Vs. NPC
PostPosted: Thu Apr 23, 2009 1:24 am 
Offline
Pro
User avatar

Joined: Mon May 29, 2006 3:26 pm
Posts: 493
Location: São Paulo, Brasil
Google Talk: blackagesbr@gmail.com
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.

_________________
http://www.blackages.com.br
Image
Dave wrote:
GameBoy wrote:
www.FreeMoney.com
I admit I clicked. I immediately closed upon realizing there was, in fact, no free money.
Robin wrote:
I love you and your computer.Marry me.


Top
 Profile  
 
 Post subject: Re: NPC Vs. NPC
PostPosted: Fri Apr 24, 2009 5:48 pm 
Offline
Knowledgeable
User avatar

Joined: Sun Feb 10, 2008 7:40 pm
Posts: 200
This would be good for "factions".

_________________
I is back!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group