Jump to content

Copy spl description and apply to an item


Recommended Posts

Solved. See 3rd post

 

I'm trying to create a number of cleric scrolls. In order to increase compatibility (especially with Spell Revisions), I would like to be able to copy the spell description and then apply it to the scroll description. I can do this will the file name, no problem. So, for example, for the scroll of detect evil, I have this:

 

//get spl name: Detect Evil
COPY_EXISTING ~SPPR104.spl~ ~override~
          READ_ASCII 0x0008 name


COPY_EXISTING ~B_PS104.itm~ ~override~ //scroll of detect evil (etc.)
       WRITE_ASCIIE 0x0008 ~%name%~
       WRITE_ASCIIE 0x000c ~%name%~

Great, it copies the spell text/string ref--not sure which--from the spell and applies it to the scroll. That is, this doesn't work:

//get spl name: Detect Evil
COPY_EXISTING ~SPPR104.spl~ ~override~
          READ_ASCII 0x0054 desc


COPY_EXISTING ~B_PS104.itm~ ~override~ //scroll of detect evil (etc.)
       WRITE_ASCIIE 0x0054 ~%desc%~

What am I doing wrong?

 

Edited by Grammarsalad
Link to comment

Oh spit! Simple mistake. I was copying the wrong descriptor from the spl file (i.e. 0x0054 when it should have been 0x0050)--thanks for that Subtle. This worked:

 

Edit: this is lightly better:


//Scroll of Detect evil


COPY_EXISTING ~SPPR104.spl~ ~override~
          READ_ASCII 0x0008 name
          READ_ASCII  0x0050 desc


COPY ~%mod_folder%/data/scrolls/priest_1/B_PS104.itm~ ~override~   //Actual scroll
       WRITE_ASCIIE 0x0008 ~%name%~
       WRITE_ASCIIE 0x000c ~%name%~
       WRITE_ASCIIE 0x0054 ~%desc%~
Edited by Grammarsalad
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...