Question About Quests/クエストに関する質問 (Translation from ChatGPT)

108 views
Skip to first unread message

微波蘭州(delep05)

unread,
Dec 8, 2024, 9:31:34 AM12/8/24
to GS2 ユーザグループ
  How can I reward players and get a list of the rewards they actually received?
I tried the method mentioned on the website, but it seems like only the quest ends without distributing the rewards.  

  プレイヤーに報酬を与え、実際に受け取った報酬のリストを取得するにはどうすればよいですか?
ウェブサイトに記載されている方法を試してみましたが、クエストが終了するだけで報酬が配布されていないようです。
螢幕擷取畫面 2024-12-08 222454.png
  

Kouichirou Miyamoto

unread,
Dec 12, 2024, 7:34:09 AM12/12/24
to GS2 ユーザグループ, king...@gmail.com
Quest rewards are given by writing reward transaction actions in the master data items.
For example, you can set an acquisition action such as obtaining an item (Gs2Inventory:AcquireItemSetByUserId).

2024年12月8日日曜日 23:31:34 UTC+9 king...@gmail.com:

微波蘭州(delep05)

unread,
Dec 12, 2024, 7:40:48 AM12/12/24
to GS2 ユーザグループ, Kouichirou Miyamoto, 微波蘭州
  Is my configuration correct? (I know the part that consumes stamina is being executed)  
螢幕擷取畫面 2024-12-12 203805.png

Kouichirou Miyamoto 在 2024年12月12日 星期四晚上8:34:09 [UTC+8] 的信中寫道:

微波蘭州(delep05)

unread,
Dec 12, 2024, 9:35:03 AM12/12/24
to GS2 ユーザグループ, 微波蘭州, Kouichirou Miyamoto
   I figured out what went wrong. My "Price" setting shouldn't be null; it should be set to 0.  
  Thank you for your response nonetheless.  


微波蘭州 在 2024年12月12日 星期四晚上8:40:48 [UTC+8] 的信中寫道:

微波蘭州(delep05)

unread,
Dec 21, 2024, 10:43:42 AM12/21/24
to GS2 ユーザグループ, 微波蘭州, Kouichirou Miyamoto
  Hello, currently I can receive currency rewards after completing the tasks, but I am unable to obtain item rewards.
Below is my configuration:螢幕擷取畫面 2024-12-21 233902.png  
"name": "1",
          "contents": [
            {
              "completeAcquireActions": [
                {
                  "action": "Gs2Money2:DepositByUserId",
                  "request": "{\n  \"namespaceName\": \"Coin\",\n  \"userId\": \"#{userId}\",\n  \"slot\": 0,\n  \"depositTransactions\": [\n    {\n      \"price\": 0,\n      \"currency\": null,\n      \"count\": 300,\n      \"depositedAt\": null\n    }\n  ]\n}"
                },
                {
                  "action": "Gs2Inventory:AcquireItemSetByUserId",
                  "request": "{\n  \"namespaceName\": \"Card\",\n  \"inventoryName\": \"CardData\",\n  \"itemName\": \"013\",\n  \"userId\": \"#{userId}\",\n  \"acquireCount\": 1\n}"
                }
              ],
              "weight": 1
            }
          ],
          "firstCompleteAcquireActions": [
            {
              "action": "Gs2Inventory:AcquireItemSetByUserId",
              "request": "{\n  \"namespaceName\": \"Card\",\n  \"inventoryName\": \"CardData\",\n  \"itemName\": \"011\",\n  \"userId\": \"#{userId}\",\n  \"acquireCount\": 1\n}"
            }
          ],
          "verifyActions": [],
          "consumeActions": [
            {
              "action": "Gs2Stamina:ConsumeStaminaByUserId",
              "request": "{\n  \"namespaceName\": \"Stamina\",\n  \"staminaName\": \"ActionPoint\",\n  \"userId\": \"#{userId}\",\n  \"consumeValue\": 10\n}"
            }
          ],
          "failedAcquireActions": [],
          "premiseQuestNames": []
        }
      ]
微波蘭州 在 2024年12月12日 星期四晚上10:35:03 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages