Go-piratia Posted November 4, 2023 Share Posted November 4, 2023 Создаем функцию в function.lua function AddReputation(role,amount) local playerReputation = GetChaAttr(role, ATTR_FAME) playerReputation = playerReputation + amount SetCharaAttr(playerReputation, role, ATTR_FAME) SystemNotice(role,"You've recieved "..amount.." reputation! ["..playerReputation.."]") end В MissionSdk.lua находим блок похожий c elseif actions.func == и добавляем свое условие. elseif actions[i].func == AddReputation then PRINT( "ActionProc:AddReputation, p1 = ", actions[i].p1 ) AddReputation( character, actions[i].p1 ) В самом задании используем следующим образом MisResultAction(AddReputation,1000) -- Give 1k rep Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.