Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Leon

Leon's Craft System

Recommended Posts

Hate to sound like an unintellegent fiend, but how can I call this script?

Share this post


Link to post
Share on other sites

Just like this.

 

Here ya go :D

$scene = Scene_Craft.new

 

Ah I had that but I get this error:

post-10624-125172389549_thumb.png

 

This is line 309 in the script

post-10624-125172388624_thumb.png

 

and this is what I've edited:

 

post-10624-125172395317_thumb.png

 

I added a long sword [iD 36] that was going to be made from 2 short swords [weapon] and 5 rusty blades [item]

Could what i have written be wrong?

Share this post


Link to post
Share on other sites

I see. Take every line that says font type and font size and put a # before it. You will need to do it to the whole line.

Share this post


Link to post
Share on other sites

I'm having a slight problem with this script. I am just now testing it, but I've had it for a while. I have finally made the ingredients to make my first crafting item! The item requires one body armour and two bronze bars. I have the items set properly, and have the script set up properly to my knowledge. However, when I try to craft my new armour piece i get this error:

 

---------------------------
Æsir
---------------------------
Script '    Leon's Crafting System' line 491: TypeError occurred.

no implicit conversion from nil to integer
---------------------------
OK   
---------------------------

 

that line is:

          self.contents.font.size = $defaultfontsize

 

any ideas? D: I really was hoping to have a crafting script in my game :(

 

EDIT:

I just reread the post two posts above this and I think i have the same problem...

 

EDIT2:

I ended up breaking it more XD

Edited by Ramenuzumaki

Share this post


Link to post
Share on other sites

It's been a long while, so I forgot what caused that error. I think it is a difference between versions (Judging from when Leon posted this).

 

Any line in the program that says:

self.contents.font.size = $defaultfontsize

or

self.contents.font.name = $defaultfonttype

 

Put a number sign (#) in front of it, it should turn the line green.

Share this post


Link to post
Share on other sites

ah i read the post wrong XD

i replaced "$" with "#" then i read your post just now and was like "doh before the WHOLE line!" XD

that fixed it and it looks fine :3

dankedanke

this is a really amazing script. with some help from Marked i can call it with W :3

Share this post


Link to post
Share on other sites

I have a problem with this script

It maybe easy to fix but I don't know 

 

Here is the Error

 

Script 'Leon's Crafting System' line 118: Name Error occurred

undefined method `gain_weapon' for class `Game_Party'

Share this post


Link to post
Share on other sites

Heard that there is a problem with scrolling, and in deed there is. In the script find this piece of code, should be from line 419 to 427 or so.

  def update_cursor_rect
    if @index < 0
      self.cursor_rect.empty
    else
      x = 0
      y = index * 32 + 32
      self.cursor_rect.set(x, y, (self.width - 32), 32)
    end
  end

 

Then replace it with this code:

def update_cursor_rect
    # If cursor position is less than 0
    if @index < 0
      self.cursor_rect.empty
      return
    end
    # Get current row
    row = @index / @column_max
    # If current row is before top row
    if row < self.top_row
      # Scroll so that current row becomes top row
      self.top_row = row
    end
    # If current row is more to back than back row
    if row > self.top_row + (self.page_row_max - 2)
      # Scroll so that current row becomes back row
      self.top_row = row - (self.page_row_max - 2)
    end
    # Calculate cursor width
    cursor_width = self.width / @column_max - 32
    # Calculate cursor coordinates
    x = @index % @column_max * (cursor_width + 32)
    y = @index / @column_max * 32 - self.oy
    # Update cursor rectangle
    self.cursor_rect.set(x, y+32, cursor_width, 32)
  end

Share this post


Link to post
Share on other sites

Polradio where i have to put this code or what ever to open the Crafting script

Edited by Naney

Share this post


Link to post
Share on other sites

Paulradio where i have to put this code or what ever to open the Crafting script

You need to put it in a call script in your event. Its here and should look like this when done.

sIplEmf.png

Share this post


Link to post
Share on other sites

sorry another question i made it like you said but the Event told me this: " Unable to find file Graphics/Picture/Title Pic."

Share this post


Link to post
Share on other sites

That means you dont have that picture in that location. in your graphics/picture folder put the file its requesting. you can just take any old picture and just rename it to what its requesting as long as its in that folder. It looks like its looking for "Title Pic" without quotes.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...