DoomRL > Modding

Can we have tutorial on how to make a the main.lua file?

<< < (6/6)

tehtmi:

--- Quote from: SPTX on March 30, 2013, 11:47 ---1. How are the monster's melee attack handled?

--- End quote ---
Monster melee attacks work exactly the same as the player's default fists attack; they do 1d3 damage plus any bonuses.  The only bonus is typically the monster's todam modifier (which only applies to melee attacks as opposed to todamall).


--- Quote ---2. is there any parameter that defines the aggressive behaviour or monsters toward the player? I'd want to invert that behaviour (friendly monsters attacking other monsters)

--- End quote ---

The built-in AIs don't really have support for this.  You can either write your own AI or try to hack the built-in AI; probably writing a new one is simpler as long as you don't need it to be very complex.

SPTX:

--- Quote from: tehtmi on March 30, 2013, 12:36 ---Monster melee attacks work exactly the same as the player's default fists attack; they do 1d3 damage plus any bonuses.  The only bonus is typically the monster's todam modifier (which only applies to melee attacks as opposed to todamall).
--- End quote ---
I figured as much, the thing is I have no idea how the default fist attack works and can't find doc on it.


--- Quote ---The built-in AIs don't really have support for this.  You can either write your own AI or try to hack the built-in AI; probably writing a new one is simpler as long as you don't need it to be very complex.

--- End quote ---
Well, I'd just want them to ignore the player and attack other beings instead. This is for player-spawned lostsouls and resurrected monsters precisely. So this applies only to the last created being, three at most concerning the lostsouls which should not bee an issue if turning the monsters friendly could be done by a function call.

SPTX:

--- Quote from: yaflhdztioxo on March 30, 2013, 05:54 ---As for quick_weapon that cannot be abused.  Only cursed weapons block the equip/unequip logic.

--- End quote ---
I just tried the cursed weapons thinking it would just prevent me to unequip the weapon, but it also prevents switching, which is perfect for what I wanted.

Navigation

[0] Message Index

[*] Previous page

Go to full version