Easy Decoration System


				          - EASY DECORATION SYSTEM -
	                              by Vargath.

The main purpose of this package is to offer you an ‘easy to setup’ system so your players can have their own decorations in your game. You can give them the option of finding items while playing and place them in specific spots (like a museum, house, etc)

The package is not only focused on Tycoon games. It can be used in any kind of game that includes an
inventory.

I focused on making the configuration Super Easy. No LUA knowledge is required, although the more you know, the better and the more changes you will be able to make to the package for your own purpose.

A “Complex Decoration System”, harder to setup but with many more customization will be released in future.

SHOWCASE: Crayta

					              REQUISITES:
  • Crayta Inventory Package.
  • Compatible with Prompts and Notifications packages. (But not mandatory)


					               OVERVIEW:
  • The package includes 5 templates:

  • DECO_MANAGER: A locator with the main setup properties. It is preconfigured and needs no changes unless you want to change sounds, the base pillar appearance or its mesh scaling. Inside it, you will find 4 Locators as examples.
    Each of these locators will be a spot for your player to place his decorations.

  • Deco_Item: Create and set up one of these templates for each decoration you want
    for your game. It’s basically and inventory item template with a couple more properties
    to fill.

  • Deco_Template: The system uses this template for ALL decorations. No configuration needed.

  • Deco_User: Script folder for the User template. No configuration needed.

  • Deco_Example: An example ready to drag and drop, already configured.


					         HOW TO USE THE EXAMPLE:

  • Just install the inventory package, attach the Deco_User template to your User template, drag and drop the Deco_Example template in your world… and use it! That easy!
    Take it as way to see how things are set up!!

					       STEP BY STEP INSTALLATION:

→ STEP 1.

  • Attach the User_Decorations template to the User template.

→ STEP 2.

  • You can either:
    1. Create a DECO_MANAGER inside your templated Tycoon area.
    2. Create a DECO_MANAGER in your terrain, placed where you wish.
    3. Spawn the DECO_MANAGER any other way you want during the game.

→ STEP 3.

  • Make the player call the function CreatePlayerDecorations(player) in the DECO_MANAGER:
    1. Using a Trigger Enter Event.
    2. Using any other Event.
    3. Manually by scripting.

Interact with the Base Pillars while selecting the item in inventory to create the decorations.


					       ADDING MORE DECORATIONS:

→ ADDING A NEW LOCATION:
1. Open the DECO_MANAGER template and create as many Locators as you wish. Each of these locators will be a spot to place decorations.
2. Give each of these DecoLocators a unique ID in their properties (to store data).
3. Add each of these DecoLocators to the DECO_MANAGER array in its properties.

→ ADDING A NEW DECORATION:
1. Duplicate the Deco_Item template and fill the properties of the new item.
2. This template you created will work as an item for the inventory.


					       TIPS AND FINAL COMMENTS:

  • This scripts will AUTOMATICALLY despawn all decorations when the player leaves your game.
    Another player will then be able to spawn his own decorations on the same place.

  • You can force the decorations to despawn by calling the function DestroyPlayerDecorations(player)
    in the DECO_MANAGER. This can be set in any Trigger Enter, Trigger Exit or any other Event, as well as it can be done manually by scripting.
    Another player will then be able to spawn his own decorations on the same place.

  • Check the Example I templated if you have any doubts about the configuration.

  • Feel free to contact me by discord if you need any kind of help with this package.


					    HAVE FUN AND HOPE YOU LIKE IT!


1 Like

I find it very interesting