Page 1 of 1

Custom assets problem

Posted: Sun Apr 28, 2013 2:46 pm
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! :)

Re: Custom assets problem

Posted: Sun Apr 28, 2013 2:49 pm
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 :)

Re: Custom assets problem

Posted: Sun Apr 28, 2013 3:32 pm
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 :(

Re: Custom assets problem

Posted: Sun Apr 28, 2013 3:39 pm
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).

Re: Custom assets problem

Posted: Sun Apr 28, 2013 3:50 pm
by The cube
Appears you cant type that with my keyboard.. :shock:
anyways, copied it from your post. Thank you a lot! :D

Re: Custom assets problem

Posted: Sun Apr 28, 2013 5:42 pm
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.