Jump to content


Photo

Blacksmith script RPG maker Vx Ace compatible?


  • This topic is locked This topic is locked
11 replies to this topic

#1 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 09 July 2012 - 10:12 PM

Does anyone have a script for Ace for the black smith system, I need urgently!

1503931A0WQqUDk.png

 


#2 Chaos17

Chaos17

    Advanced Member

  • Ace Member
  • 332 posts
  • RM Skill - Jack of All Trades

Posted 10 July 2012 - 08:32 AM

There is one on this site > http://www4.plala.or...gss3/index.html
Can't directly link it for you because the site automoatly loop back on main page.
Posted Image Posted Image Posted Image

#3 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 10 July 2012 - 08:49 AM

There is one on this site > http://www4.plala.or...gss3/index.html
Can't directly link it for you because the site automoatly loop back on main page.


I found it, but its all in Japanese, I need to know how to set the shop up and what materials, do you have any idea how to do so?

1503931A0WQqUDk.png

 


#4 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 10 July 2012 - 08:59 AM

Oh yeah I Can read Japanese (cuz im half) but not much but I tried it and I get this -_-
Spoiler

1503931A0WQqUDk.png

 


#5 eshra

eshra

    Advanced Member

  • Ace Member
  • 323 posts
  • RM Skill - Designer

Posted 13 July 2012 - 10:48 AM

Umm this should be a pretty easy script, for someone who's profficient in Ruby, to write. I am not used to Ruby and so it is a bit embarassing to post this mess but this is the script I am using to implement a smithing system in my game...

I really only intended to use it myself but let me know if it works for you.

To use it just have a note tag like this:
Posted Image

on all of the items that you want to be able to smith. The item type, either weapon, armor, or item, is the item type of the ingredient you're describing. The id is the value corresponding to that ingredient in the database and the last number is the quantity of the item that is required in the recipe.

After that you need to make an event (like an anvil) that the player can interact with. The event should make a call to the smithing script like this:
Posted Image


Spoiler


It's absurdly long because I didn't extend the correct classes when I started and was too lazy to go back and change it.

LOGO1713_zpsa57aa8ad.png


#6 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 13 July 2012 - 04:01 PM

Umm this should be a pretty easy script, for someone who's profficient in Ruby, to write. I am not used to Ruby and so it is a bit embarassing to post this mess but this is the script I am using to implement a smithing system in my game...

I really only intended to use it myself but let me know if it works for you.

To use it just have a note tag like this:
Posted Image

on all of the items that you want to be able to smith. The item type, either weapon, armor, or item, is the item type of the ingredient you're describing. The id is the value corresponding to that ingredient in the database and the last number is the quantity of the item that is required in the recipe.

After that you need to make an event (like an anvil) that the player can interact with. The event should make a call to the smithing script like this:
Posted Image


Spoiler


It's absurdly long because I didn't extend the correct classes when I started and was too lazy to go back and change it.


DUDE OMFG I LOVE YOU! IT WORKS, EVERYONE THIS IS A LEGIT RPG MAKER BLACKSMITH SCRIPT, NO ERRORS!

Umm this should be a pretty easy script, for someone who's profficient in Ruby, to write. I am not used to Ruby and so it is a bit embarassing to post this mess but this is the script I am using to implement a smithing system in my game...

I really only intended to use it myself but let me know if it works for you.

To use it just have a note tag like this:
Posted Image

on all of the items that you want to be able to smith. The item type, either weapon, armor, or item, is the item type of the ingredient you're describing. The id is the value corresponding to that ingredient in the database and the last number is the quantity of the item that is required in the recipe.

After that you need to make an event (like an anvil) that the player can interact with. The event should make a call to the smithing script like this:
Posted Image


Spoiler


It's absurdly long because I didn't extend the correct classes when I started and was too lazy to go back and change it.

ACTUALLY ONE ERROR! So I want to use the material x50, but instead when i try to make the weapon, says x5 on the screen? idk whats going on is there a way to fix this so the player can see the whole number?

1503931A0WQqUDk.png

 


#7 eshra

eshra

    Advanced Member

  • Ace Member
  • 323 posts
  • RM Skill - Designer

Posted 13 July 2012 - 05:41 PM

It's because the "0" of the number "50" is getting cut off when it's being drawn on the screen.

In the draw_item method on line 657 go down 6 lines to line 663 and increase the value of the number 20 there to something else.
This is the method:
def draw_item(item, index, amount, x_offset, y_offset)
	if item
	  rect = item_rect(index)
	  rect.x += x_offset
	  rect.y += y_offset
	  draw_item_name(item, rect.x, rect.y, enable?(item))#enable?(item))
	  rect.x = rect.width - 20	   #change the 20 to a larger number
	  draw_item_number(rect, item, amount)
	end
  end
I increased it to 30 and the "0" was no longer cut off for the font that I'm using but that might vary based on the font you're using.

Edited by eshra, 13 July 2012 - 05:41 PM.

LOGO1713_zpsa57aa8ad.png


#8 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 13 July 2012 - 06:22 PM

It's because the "0" of the number "50" is getting cut off when it's being drawn on the screen.

In the draw_item method on line 657 go down 6 lines to line 663 and increase the value of the number 20 there to something else.
This is the method:

def draw_item(item, index, amount, x_offset, y_offset)
	if item
	  rect = item_rect(index)
	  rect.x += x_offset
	  rect.y += y_offset
	  draw_item_name(item, rect.x, rect.y, enable?(item))#enable?(item))
	  rect.x = rect.width - 20	   #change the 20 to a larger number
	  draw_item_number(rect, item, amount)
	end
  end
I increased it to 30 and the "0" was no longer cut off for the font that I'm using but that might vary based on the font you're using.


Dude You are the best!

1503931A0WQqUDk.png

 


#9 amerk

amerk

    Advanced Member

  • Forum Admins
  • 2,671 posts
  • RM Skill - Writer

Posted 13 July 2012 - 10:57 PM

This should have been asked in the request area. Also, if you look around, you'd find such scripts available.

#10 Chaos17

Chaos17

    Advanced Member

  • Ace Member
  • 332 posts
  • RM Skill - Jack of All Trades

Posted 14 July 2012 - 05:05 PM

I found this maybe it will be easier to use since it's in english.
http://yanflychannel...mon-event-shop/

Here's a tutorial how to use this script to make a balcksmith
http://ccrgeek.wordp...nt-shop-script/

Edited by Chaos17, 14 July 2012 - 05:06 PM.

Posted Image Posted Image Posted Image

#11 Grimga

Grimga

    Prince of Darkness

  • Ace Member
  • 91 posts
  • LocationAbyss
  • RM Skill - Musician

Posted 15 July 2012 - 09:54 AM

I found this maybe it will be easier to use since it's in english.
http://yanflychannel...mon-event-shop/

Here's a tutorial how to use this script to make a balcksmith
http://ccrgeek.wordp...nt-shop-script/


Chaos it's fine, Eshras script is 1000x easier to use

1503931A0WQqUDk.png

 


#12 stoneship

stoneship

    Newbie

  • Ace Member
  • 4 posts

Posted 23 September 2012 - 02:37 PM

Hey is it possible that not all smithable items are shown at once? So that a switch is on that it is shown
But by the way it is a really cool script




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users