RPG in a Box

RPG in a Box

View Stats:
Viviana Jun 2, 2020 @ 2:52pm
how to equip items
so in the stats editor tab you can add equipment and in the items editor tab i put Equippable but when test the game i made you cant equip any items
< >
Showing 1-5 of 5 comments
Ol' Smaug  [developer] Jun 2, 2020 @ 3:39pm 
Originally posted by trentpt73072:
so in the stats editor tab you can add equipment and in the items editor tab i put Equippable but when test the game i made you cant equip any items

Hello! Currently the equipment system is still in development and there isn't a visual interface for it in game yet, so right now items can only be equipped/unequipped using the "Equip Item" and "Unequip Item" scripting functions. Apologies for the confusion!

  • Added new scripting function "Equip Item" for equipping an item to character's equipment slot (e.g equip_item(player, "right_hand", "ITEM_0001"))
  • Added new scripting function "Unequip Item" for unequipping an item from a character's equipment slot (e.g. unequip_item(player, "right_hand"))
Viviana Jun 4, 2020 @ 7:53am 
ok thanks
Ol' Smaug  [developer] Jun 4, 2020 @ 8:41am 
Originally posted by trentpt73072:
ok thanks

No problem! :)
Cambori Apr 18, 2021 @ 12:47am 
I tried using the functions to equip them. I seen no difference. The item stays in my inventory and not on the equips slots. It also needed a model for it and it never showed on my character.
Last edited by Cambori; Apr 18, 2021 @ 1:00am
Ol' Smaug  [developer] Apr 18, 2021 @ 2:10pm 
Originally posted by adamleeconnell:
I tried using the functions to equip them. I seen no difference. The item stays in my inventory and not on the equips slots. It also needed a model for it and it never showed on my character.

Currently the scripting functions are independent from the equipment slots, so using the "Equip Item" function doesn't automatically place the item into a slot, it will only equip the item to the player behind the scenes and apply any stat boosts.

In order for the model to appear, both the character and the object model assigned to the item need to have attach points defined with a name matching that of the equipment slot ID (for example, "right_hand" if a sword is being equipped to the player's "right_hand" slot). There's a bit of information about this in the attach points documentation here: https://www.rpginabox.com/docs/doku.php?id=attach_points

Hopefully that helps! :)
Last edited by Ol' Smaug; Apr 18, 2021 @ 2:11pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jun 2, 2020 @ 2:52pm
Posts: 5