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.

Custom weapon name

You can change the name of a weapon kind, meaning for example #23 in your database, however not for individual weapons (aka renaming one of your instaces of item #23 differently than the others) without doing some work. If you just want to rename a weapon kind, though, you'd go about it like this:

Code:
$data_weapons[23].name = "Newname"# change weapon #23's name to 'Newname'

If you want to change an item that's already in possession, you'd do this:

Code:
$game_weapons[23].name = "Newname"# change weapon #23's name to 'Newname'

You can do all of these from a Call Script event command. Note that you could always get rid of a weapon and add another one instead with the same values, which would probably be handier in fact, as you have both of your weapons in the database for easy access in case you want to change them or something... It just seems like the clean way to me.
 

Zeriab

Sponsor

$game_weapons and Game_Weapon does not exist

You can change the name of a specific weapon type using $data_weapons blue describes.
Note that any changes are not kept in save files so you can really only change the name temporarily.
 

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