Giter Club home page Giter Club logo

quester's Introduction

This project is no longer maintained.

Quester

Concept Garry's Mod Gamemode

Functions

Boolean ply:AddQuest( questID ) Adds a quest to the player by ID.

Void ply:CompleteQuest( questID, status, message ) Completes a quest by ID with a status and message to be shown to the user.

Void ply:RemoveQuest( id ) Removes a quest from the player. Don’t use this, use CompleteQuest() instead.

Integer ply:AddQuestProgress( questID, num ) Add quest progress to the player.

Table ply:GetQuests() Get the active quests from the player.

Table ply:GetCompletedQuests() Get the quests a player has completed.

Boolean ply:HasCompletedQuest( questID ) Get if the player has completed the specified quest.

Boolean ply:IsOnQuest( questID ) Check if the player is currently on the specified quest.

Integer ply:AddMoney( amount ) Adds the specified amount of money to the player.

Integer ply:RemoveMoney( amount ) Removes the specified amount of money from the player.

Integer ply:GetMoney() Gets the amount of money the player has.

Void ply:GiveMoney( target, amount ) Removes money from the player and gives it to another.

Void ply:GiveWeapon( item ) Function to give items to the player with sound effects.

Table Quest:FindByID( id ) Find a quest by ID, returns a table.

Void Quest:RegisterQuest( table ) Registers a new quest with the quest handler.

String Quest.HookName( player ) Helper function to make hook names. Note that this one is . not :

Void util.Announce( message, [player] ) Helper function to send a message to a player via hint. If player isn't specified, it will go to everyone in the server.

Quest Flags:

Quest.QUEST_COMPLETE Quest.QUEST_ABANDONED Quest.QUEST_FAILED

quester's People

Contributors

elblayko avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.