Transform into monsters/other characters
I've been throwing around some ideas for a dmod for a little while and I have an idea where at certain times in the game, you have to learn a spell to transform yourself into monsters...maybe even other characters. I've searched through the forums, and looked through the Alternative Heroes files, but I still have problems. I know how to change into the monster and back using base_walk and base_idle, but my problem is the attack. Like say you transform into a slayer at one point...can you make it so your attack is the monsters attack? As is you change to dink punching. I gave him fists,a nd edited the item-fst file like I saw in a thread on the board, but it still was dink punching. I've seen dmods where you are a knight or a goblin with there attack, so I'm sure its possible. I tried the sp_base_attack, but it didnt work. Maybe I edited the item fist's c file incorrectly. Thanks for the help.
Dink doesn't have an sp_base_attack, the attack sequence is hardcoded (alas) into the Dink engine. Open up (Win)DinkEdit, and look where the attack graphics are, write down the sequence number (you managed to get him walking, so this shouldn't be a problem, I guess), and use init()-lines to overwrite the attack lines when transforming. Please note that when transforming back, you should also overwrite the init() again.
For information about init() you might want to look at some dink.ini tutorials. Or take a peek in item-sw1.c, where the fist-attack is overwritten by the sword-attack with init() lines.
For information about init() you might want to look at some dink.ini tutorials. Or take a peek in item-sw1.c, where the fist-attack is overwritten by the sword-attack with init() lines.
Take a look into prophecy of the ancients to see how to transform Dink into a monster. The source is also available for download.