Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Need help with Materia Script's Shop Function [Resolved]

Aerif

Member

I can't figure out, for the life of me, how to use the shop system that is built into the materia script (below). Could someone please assist me?

The Script can be found here (I had to upload it due to post size limits):

[url=http://FileHost.JustFreeSpace.Com/749Materia]http://FileHost.JustFreeSpace.Com/749Materia
System.txt[/url]

In the demo itself there was an event with some a small script in it that showed an example of the scene being called however I can't figure out how to do it individually seeing as I know hardly anything about RGSS. This is what was included:

Code:
list = (1...$data_materia.size).to_a
$scene = Scene_MateriaShop.new(list)
 

Atoa

Member

you must make an array:
Code:
list = [A, B, C, D]
where A, B, C, D are the IDs of the mateias. You can add any nubers of materias you want

E.g
Code:
list = [ 1, 2, 3, 4, 5, 6]
$scene = Scene_MateriaShop.new(list)
 

Aerif

Member

I knew it was some sort of array, I tried () and {} but never []

The problem now is that the SDK (2.4) is giving me an error:

Script: 'Standard Development Kit' line 2516: NoMethodError occurred.
undefined method '*' for nil:Nilclass
 

Atoa

Member

That's why i hate SDK...
Lot's of good scripts need it, but at the same time it don't allow us to use another good scripts.

In this part the only thing i can recomend is to try find non SDK version of the scripts you using and throw away SDK XD
 
If I had to guess I think this script was made for an earlier version of the SDK, before the class Window_HorizCommand was added to it and standardized. Look in the Materia script for the two instances of Window_HorizCommand2 (should be lines 1045 and 1679) and change them to Window_HorizCommand2. I couldn't look into it further than this because it needed a custom graphic, but the window appeared to process properly.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top