Page 2 of 2

Re: Images on Scrolls?

Posted: Tue Sep 25, 2012 9:45 pm
by Bucnasti
petri wrote:Try this:

local note = spawn("note")
note:setScrollImage("mod_assets/textures/scroll_images/map.dds")
party:getChampion(1):insertItem(7, note)

Should be a bit easier to read too :)
Huzzah! That worked. Now on to my next challenge.

Re: Images on Scrolls?

Posted: Mon Oct 08, 2012 12:27 am
by LordGarth
Is there code that i can add to this for a rune image

defineObject{
name = "scroll_chainlightning",
class = "Item",
uiName = "Scroll of Chain Lightning",
model = "assets/models/items/scroll_spell.fbx",
gfxIndex = 113,
scroll = true,
spell = "chain_lightning",
weight = 0.3,
}

thx,

LG

Re: Images on Scrolls?

Posted: Mon Oct 08, 2012 12:33 am
by LordGarth
Nevermind I got it to work.

Thx,

LordGarth

Re: Images on Scrolls?

Posted: Mon Oct 08, 2012 12:45 am
by LordGarth
Great all new spell scrolls made and tested. If only new textures for spells worked.

LG