Custom assets problem

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Custom assets problem

Post by The cube »

So, while i was making my dungeon, i realized i need more rogue dagger - style weapons.
i opened items.lua in scripts folder of my dungeon and writed there:

Code: Select all

cloneObject{
   name = “butterknife”
   baseObject = “knife”
   uiName = “butter knife
   attackPower = 3
   description = “This knife can barely cut butter”
   accuracy = -5
   coolDownTime = 1
}
But when i updated the dungeon in the editor it said:
mod assets/scripts/items.lua:7: `}` expected (to close `{ ` at line 5) near baseObject
what am i doing wrong? :?

Oh, and,
1. how do you set the portrait of a character
2. how do you check if the party has a sort of character in it (mage, warrior, rogue)

Thanks for reading this far! :)
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: Custom assets problem

Post by Xanathar »

First all the " should be plain ", not the angled variety (although this is likely just an effect of copy and paste here in the forum).
Then you need a comma ( , ) at the end of every line :)
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Custom assets problem

Post by The cube »

It still doesn`t work :(

Code: Select all

cloneObject{
  name = “butterknife”,
  baseObject = “knife”,
  uiName = “butter knife”,
  attackPower = 3,
  description = “This knife can barely cut butter”,
  accuracy = -5,
  coolDownTime = 1,
}
still gives the same error in line 5. Well, seems im really bad at this :(
User avatar
Damonya
Posts: 134
Joined: Thu Feb 28, 2013 1:16 pm
Location: France
Contact:

Re: Custom assets problem

Post by Damonya »

There is a problem with your ““
try with "" 3 key on the keyboard
First all the " should be plain ", not the angled variety (although this is likely just an effect of copy and paste here in the forum).
Orwak - MOD - Beta version 1.0
User avatar
The cube
Posts: 94
Joined: Tue Apr 23, 2013 6:09 pm
Location: Barren Desert

Re: Custom assets problem

Post by The cube »

Appears you cant type that with my keyboard.. :shock:
anyways, copied it from your post. Thank you a lot! :D
User avatar
Isaac
Posts: 3192
Joined: Fri Mar 02, 2012 10:02 pm

Re: Custom assets problem

Post by Isaac »

The cube wrote:Appears you cant type that with my keyboard.. :shock:
anyways, copied it from your post. Thank you a lot! :D
If you cannot type the key, Windows offers a software keyboard, and a character map utility; (both found in the accessories menu).

These will allow you to insert the characters.
Post Reply