Legend of Grimrock
สร้างและดาวน์โหลดดันเจียน ไอเท็ม ปีศาจ และสภาพแวดล้อมใหม่ ๆ
ใช้ Dungeon Editor เพื่อสร้างการผจญภัยครั้งใหม่และสร้างความท้าทายให้กับผู้เล่นอื่น เติมเต็มดันเจียนของคุณด้วยปริศนา กับดัก หรือแม้กระทั่งไอเท็ม ปีศาจ และสภาพแวดล้อมใหม่ทั้งหมด ด้วยภาพกราฟิกและเสียงที่สร้างขึ้นเอง คลิก ที่นี่ เพื่อเรียนรู้เพิ่มเติม
How to make monsters no-attacking/moving?
HI!! im new to this editor thing of this game.

I've finished the game twice and stuff, so, suddenly i've seen the editor like something interesting.

I just want to use an idle skeleton in the test window of the editor to test some things, but i don't know how to make him not move or attack me :S. I look at the AI bracket but there is only "guard" and "default"

Plz tell me!!! :3
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
You will need to make a custom monster using the cloneMonster function and give him a sight = 0 attribute and use an onDamage hook so you can hit him and he still won't move.

In your dungeon folder there is a .dat file (which is the dungeon info) and a mod_assets folder. Open that folder and you will find a folder called scripts, open that and look for a lua file named monsters, open that file and type in the following,

cloneObject{
name = "blindskeleton",
baseObject = "skeleton_warrior",
sight = 0,
onDamage = function()
return false
end,
}

Then save the file and reload your level in the editor and you should see a blindskeleton listed in your item list. Be sure to type it in exactly as it shows, pay attention to capital letter and comma's.

You can also do this with other monsters, just change the name and the baseObject.
Oh, it works!! :D thank you!!
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
ต่อหน้า: 1530 50