Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: remminycricket on Wed 14/03/2007 21:17:22

Title: Question about attacking other characters
Post by: remminycricket on Wed 14/03/2007 21:17:22
I was wondering how to make characters that when you click them using the use cursor, you begin a battle with them, much like rpgs, click the monster and you begin fighting them. I know the wording is very confusing so I decided to provide this excellent work of art. ::)

(http://i29.photobucket.com/albums/c272/remminycricket/attack.jpg)
Title: Re: Question about attacking other characters
Post by: Da_Elf on Wed 14/03/2007 22:11:30
on the NPC you just set it up in the interaction area. you can use a simple interact script or if you use a "use inventory item" you can specify something like

if (player.ActiveInventory == iSword) {(fight code)}
else {player.say("That doesnt do anything");}


and in the interact slot put

display("Are you just going to push him around or fight him");