magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 11 Jun 2013 12:42 PM |
So I am going to try and make an npc api. I'm just wondering what features people would want from it. You will be able to make an npc with pathfinding, auto retaliation, wondering, respawning and more with just one line, will be somewhat like this:
npc = NpcApi.RegisterNpc(model, health, damage, speed, respawnTime, wonder, wonderRange, retaliate, aggresive, aggresiveDistance, pathfind)
And then you would no longer need to touch it, the api handles the rest. Of course if you want to take it beyond that you can but i'm wondering what you guys would like it to be able to do other than that. (I will probably add quests and non-attackable npcs). |
|
|
| Report Abuse |
|
|
|
| 11 Jun 2013 12:44 PM |
npc.walkWithPathFind(endPos)
thats all I would need. |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Jun 2013 12:44 PM |
Last few arguments:
'retaliate' Retaliate what? Us entering it's territory? 'aggressive' No. Not aggressive at all.
|
|
|
| Report Abuse |
|
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 11 Jun 2013 12:46 PM |
@Stealth yeah ill add that aswell.
@digpoe retaliate = if you hit it it hits back. aggresive = if you get close enough it attacks.
Both are boolean values.
|
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 11 Jun 2013 12:47 PM |
for agressive, you could have 0 equaling false and any number other than that equate to true.
der. one argument shorter. |
|
|
| Report Abuse |
|
|
| |
|
magnalite
|
  |
| Joined: 18 Oct 2009 |
| Total Posts: 2467 |
|
|
| 11 Jun 2013 12:48 PM |
| I havnt made it yet, thats just what i plan to do abouts. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Jun 2013 12:49 PM |
| late toast, that was at kim |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
| |
|