ติดตั้ง Steam
เข้าสู่ระบบ
|
ภาษา
简体中文 (จีนตัวย่อ)
繁體中文 (จีนตัวเต็ม)
日本語 (ญี่ปุ่น)
한국어 (เกาหลี)
български (บัลแกเรีย)
Čeština (เช็ก)
Dansk (เดนมาร์ก)
Deutsch (เยอรมัน)
English (อังกฤษ)
Español - España (สเปน)
Español - Latinoamérica (สเปน - ลาตินอเมริกา)
Ελληνικά (กรีก)
Français (ฝรั่งเศส)
Italiano (อิตาลี)
Bahasa Indonesia (อินโดนีเซีย)
Magyar (ฮังการี)
Nederlands (ดัตช์)
Norsk (นอร์เวย์)
Polski (โปแลนด์)
Português (โปรตุเกส - โปรตุเกส)
Português - Brasil (โปรตุเกส - บราซิล)
Română (โรมาเนีย)
Русский (รัสเซีย)
Suomi (ฟินแลนด์)
Svenska (สวีเดน)
Türkçe (ตุรกี)
Tiếng Việt (เวียดนาม)
Українська (ยูเครน)
รายงานปัญหาเกี่ยวกับการแปลภาษา
http://www.grimrock.net/forum/viewforum.php?f=14
function itemPuzzle()
= iterate through all contained items on alcove, checking for a matching name
for i in itemPuzzleAlcove:containedItems() do
if i.name == "green_gem_2" then
playSound("level_up")
break
end
end
end
I've changed things around but in this case have changed nothing but the item name from pitroot bread to green gem. I'm wanting to have a gem puzzle and the player is required to use gems to get into certain rooms and then must have them all to progress. I'm also wanting to add a timer to the doors of say 5 seconds but I imagine that's somewhere else. The door is called 'green_door' and will also be replaced with red and blue door. I also want to make a script for 3 alcoves that require each gem to be placed correctly fort he next door to open. I've followed the instructions for a combination lock so I imagine it would be much like that?
Thanks again :)
if i.id == "green_gem_2" then ... or
if i.name == "green_gem" then ...
It depends on if you want that specific green_gem, or any green_gem
It's also possible you forgot to point your alcove to your script function or your script function is referencing the wrong alcove (I've done both of these many times)
If all else fails throw some print statements in there to debug it like
print(i.name)
good luck!
One more Issue I'm having that you might be able to help with, should be simpler solution and it's another problem with copied script from the modding site. I'm trying to create a custom asset (In this case a sword) and I copy the script:
cloneObject{
name = "super_machete",
baseObject = "machete",
uiName = "Super Machete",
attackPower = 12,
damageType = "shock",
description = "This machete radiates with strange energy.",
I tried changing things, didn't work, so I also just kept it directly as it is, but everytime I try to load or re-load my map it gives me an error message stating that:
Unexpected symbol near '<eof>'
It references the lua file in the assets subfolder of LOG... sorry to hurl another question at you but I figure this one should be a simpler fix... fingers crossed :P
Fantastic! Thank you I think it was the ID problem. My dungeon can continue! :)
}
name = "super_machete",
baseObject = "machete",
uiName = "Super Machete",
attackPower = 12,
damageType = "shock",
description = "This machete radiates with strange energy."}
Not sure why I am getting this error. I copy and pasted.
puzzleDoor:open()
regarding your object error -- where are you putting this? in your mod_assets subdirectory, there is "scripts" folder, then in it, you will have objects.lua . the object cloning stuff MUST go into this file.
When the game is finished it writes game over tiny and allows the player to keep moving.
I have a tga file for intro and ending but I cant get either to work.