#Need help with some basics

2 messages · Page 1 of 1 (latest)

frigid cipherBOT
#

@tough widget

Fiftyswirl Uploaded Some Code

Hello! I need some help with JSON. I have joined 3 json files (not complte because too long) and I'm trying to understand what is not working.

To make it simple, I've created a custom room named "Cuisine Royale" it is in a game named Going Medieval. The room and effect of the room works well (it's a lot of copy paste with some simple modif)

I try to put an effect for the Cooks (in production with "onStartEffector" and I don't know how to write the exception for the effect to only work in that custom room. I've joined the effector section too. The effector works but it trigger in normal kitchen also.

Any tips would be much appreciated thx!! 😎👍🏻

Attachment: effector.txt
{
      "id": "FineKitchen",
      "locKeys": [        
	    {
          "language": 1,
          "name": "Les Cuisiniers Royals sont heureux",
          "info": "room_type_Cuisine Royale"
        }
      ],
	  "category": "roomTypesEffectors",
      "bubbleIcon": "thought_bubble",
      "uiGroup": 1,
	  "duration": 8,
      "effects": [
        {
          "devName": "MoodPositive",
          "type": "4",
          "parameters": [
            {
              "key": "BaseValue",
              "value": "25"
            }
          ]
        }
      ]
    },
Uploaded these files to a Gist
tough widget
#

The most important txt is production. It is where I've been able to make the effect appear in game. Only thing is I tried writting with required and in a lots of ways but can't get it to work.