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.

Problem with the PrexCraft Script

I have recently started working with the PrexCraft Script,
of which the original topic can be found here:

viewtopic.php?f=11&t=11261

Now I have come across this problem which I can't seem to solve myself.

I created some recipes for the skill Blacksmith and I learned this trade to my characters.
And everything works so far. But when I try to use the following code, I get an error.

Code:
#   trade_check() : name, level

#     - this will return true or false, depending on if the arguement 'level' is

#       less than or equal to the 'trade skill'.

I use the code as you can see in the screenshot below.

25729701.png


And then I get this error:

Code:
Script 'Crafting' line 717: ArgumentError occurred.

comparison of Fixnum with String failed

I tried to change some things in the event as well as in my script, but the error keeps popping up as soon as I talk to the event.
I would really appreciate some help. It is probably something small in the event I made or it might be something in the script itself.
If needed I will post my copy of the script here, since I might have accidentally messed something up in the script (although I doubt it).
 
Thank you for the quick reply and help,
so you mean I should do it like this?

(Blacksmith, '3')

in stead of ('Blacksmith', '3')?

I tried it and now I get a different error message:

Code:
NameError occurred while running script.

uninitialized constant Interpreter::Blacksmith

EDIT: Lol sorry, I misread what you said :blush:
Turned it into ('Blacksmith', 3) and it works now,
thanks again for the help :wink:
 

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