Question about attacking other characters

Started by remminycricket, Wed 14/03/2007 21:17:22

Previous topic - Next topic

remminycricket

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. ::)


Da_Elf

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
Code: ags

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


and in the interact slot put
Code: ags

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

SMF spam blocked by CleanTalk