BulletHell Elemental Template
  • Bullethell Elemental Template
  • ✨Getting Started
    • 🚀Quickstart
  • 😓Common problems
  • 📲User Interface Menus
    • Login Scene
    • Game Instance
    • Monetization Manager
    • Battle Pass Manager
    • Game Manager
    • Audio Manager
    • IAP Manager
    • Loading Manager
    • Language Manager
    • Backend Manager
    • Reward Manager Popup
    • Rechargeables Manager
    • Home Scene
    • Creating a new scene
  • ⚔️Scriptables
    • Create new character
    • Create new Character Type
    • Create New Skill
    • Create New Player Icon
    • Create New Player Frame
    • Create New Map Info Data
    • Create New Quest Item
    • Create New IAP shop Item
    • Create new Coupon Item
    • Create New Currency
    • Create New ShopItem
    • Create New BattlePassItem
    • Create New SkillPerkData
    • Create New StatPerkData
    • Create New Monster/Mob
    • Create New Monster wave
    • Create New DropEntity
    • Addon Wheel Spin
    • Addon Lootbox
    • Addon Dayle Rewards/New Account Rewards
    • Addon Realtime Global Chat
  • EventMap/Reward map(Preview)
Powered by GitBook
On this page

EventMap/Reward map(Preview)

This page is only for version 1.2.0, in later versions this will already be implemented and documented in their respective pages.

step by step: 1- drag and drop the RewardManagerPopup prefab located in Addons/RewardPopup into the Login scene 2-drag and drop the UIRewardManagerPopup prefab located in Addons/RewardPopup into the Home scene

(Do not add buttons to open this menu, as it opens automatically when there are rewards for completed maps.)

3-In the Home scene, in the UIMapsMenu menu, add a new MapEntry prefab for the MapEventEntry and a new container (Scroll view for example), this new container can be just a duplicate object of the ScrollView of the default MapEntry 4-Add to the MapEntry and EventMapEntry prefabs the image reference for the icon, the text for the amount of coins, and the common map objects and maps that are needed for the coin to be accessed (The EventMapEntry prefab in this addon's folder will serve as an example)

5-Add an EventMaps collection to firebastore and adjust the rules so that this collection can be read only.

match /EventMaps/{document=**} {   
      allow read: if request.auth != null;
      allow write: if false;
    }

Example:

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents { 

    match /Players/{userId}/{document=**} { 

      allow read: if request.auth != null;

      allow write: if request.auth != null && request.auth.uid == userId;
    }
    
    match /BattlePass/{document=**} {   
      allow read: if request.auth != null;
      allow write: if false;
    }
    match /EventMaps/{document=**} {   
      allow read: if request.auth != null;
      allow write: if false;
    }
  }
}

New:

Event Map Entry Prefab: MapEntry prefab for event maps

Event Map Container: Container for MapEntry prefabs for event maps

Always Show Event Map: By leaving this box checked, the system will not check whether an event is active or not and will show all of them to the player.

Reward Settings: Select the rewards that will be given to the player upon completing this map for the first time.

Is Need Currency: Check this option if you want the scene to only be accessible using a ticket (Currency), it can be used in normal maps for Boss Map and in events that require a ticket for access.

Is Event Map: Check this option if it is an event map, it will only be visible if in Firebase the EventMaps collection has a document with the same name as EventIDName and the bool field active: true, otherwise it will not appear, unless the Always Show Event Map option is activated in the UIMapsMenu.

To add a new event map in Firebase, go to the EventMaps collection, create a document with the exact same name as the EventIDName of your map, for example "halloween", in this document add a boolean field with the name active and the value false.

When you set the active field of a document to true, when the player opens the UIMapsMenu the map will be there to play.

Example:

PreviousAddon Realtime Global Chat

Last updated 4 months ago