The Dink Network

Reply to Re: attempting two player dink

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
September 21st 2007, 10:41 AM
duckdie.gif
So, say we have Dink and his friend Bob the knight. Bob would act as a friendly fighter npc, but there could be a key to switch the control. So now, Dink is the npc and we can control Bob. To make it more complex, we could use keys to tell the npc what to do (such as who to attack or what spell to use.) I think I'll start on this tomorrow.

A bit of advice here - switching main characters in the middle of a fight may result in utterly hellish problems, especially on slower computers.

Otherwise, it's fully possible to do this. TMOD has a player-switching feature (though not while fighting) and an AI feature.
An example for the AI feature : let's say you've got three characters at the start of the fight. You pick a character, and then choose a behavior for the other two (focus on healing, retreat if HP less than [variable], attack spellcasters, and so on). You can also switch the character's behavior while fighting and make he/she/E perform certain actions.