Slayer. Documentation. Versions 2.0+ by Greek2me

Similar documents
Area Protection Rising World plug-in version 1.0.0

SAVING, LOADING AND REUSING LAYER STYLES

Creating Interim & Final Invoices - Basic Steps

How to Blog to the Vanguard Website

We recommend downloading the latest core installer for our software from our website. This can be found at:

Save System for Realistic FPS Prefab. Copyright Pixel Crushers. All rights reserved. Realistic FPS Prefab Azuline Studios.

TABLE OF CONTENTS. Logging into the Website Homepage and Tab Navigation Setting up Users on the Website Help and Support...

15 TUBE CLEANER: A SIMPLE SHOOTING GAME

Creating Computer Games

10.2. Scanning Document Camera Scoring. Page 1 of 5. How do I score answer sheets using a document camera? STEP 1

Table of Contents. Creating Your First Project 4. Enhancing Your Slides 8. Adding Interactivity 12. Recording a Software Simulation 19

METRO TILES (SHAREPOINT ADD-IN)

Scratch for Beginners Workbook

Paper Prototyping Kit

Official Documentation

Crytek Studios Server Command Table for Far Cry Patch /07/ Crytek 1

Quest 6: Viking Mythology

WORN, TORN PHOTO EDGES EFFECT

Faculty Lecture Capture Guide

GAME:IT Junior Bouncing Ball

Girls Programming Network. Scissors Paper Rock!

Creating Photo Borders With Photoshop Brushes

Assessment. Self Assessment. Teacher Assessment. Date Learning Objective(s) Achievement or. NC Level: Game Control Student Booklet P a g e 1

EFFORT EMPATHY GROWTH

MATKA. Foreword. 1. Event Rules

Online Courses with the Writers Workshop

USPTAplayer.com Reference Guide

Live Agent for Administrators

Solving tasks and move score... 18

Instructions for the W0NE Remote HF Rig, IC-7300

5008 Dual Synthesizer Configuration Manager User s Guide (admin Version) Version valontechnology.com

Live Agent for Administrators

MushiSystem Update 2.1.0

Kismet Interface Overview

Top 10 TV Quiz Show Super-Pack Help

Single Player Commands Schematic Save Format

OverDrive for Kindle, Kindle Paperwhite, Kindle Voyage, and Kindle Oasis (not Kindle Fire and Fire Tablet) Contents

Sheepshead, THE Game Set Up

Civ 6 Unit Asset Tutorials Level 2 - Change your behavior! By Leugi

Scorer with BridgePads Quick Guide to Teams Scoring

HCA Tech Note 102. Checkbox Control. Home Mode aka Green Mode

Blackfin Online Learning & Development

Pony Primer. Getting Started

Overview... 3 Starting the Software... 3 Adding Your Profile... 3 Updating your Profile... 4

Pony Primer. Getting Started

Photoshop CS6 First Edition

iphoto Getting Started Get to know iphoto and learn how to import and organize your photos, and create a photo slideshow and book.

Begin at the beginning," the King said, very gravely, "and go on till you come to the end

Timekeeper/Statistical tool for Basketball Sponsor: Prof. Wayne Dyksen & MSU Basketball Team Spring User Guide

Getting Started with Osmo Coding Jam. Updated

Once you have chosen the water world this is how your screen should look.

Kings! Card Swiping Decision Game Asset

opponent; your phaser says tagged. Number of tags is shown on your display after the letter T. How to Play:

Mobile Application Programming: Android

DocuSign Setup Admin. DocuSign User Setup Process Overview. Setting up a new DocuSign user

Level 21: Creating the Boss Battle 2

BEGINNER APP INVENTOR

DIRECTIONS FOR CREATING A WORDPRESS BLOG FOR SCIENCE WRITING ONLINE

Alice Learning to program: Part Two by Ruthie Tucker and Jenna Hayes Under the direction of Professor Susan Rodger Duke University, July 2008

Go Daddy Online Photo Filer

LPR SETUP AND FIELD INSTALLATION GUIDE

Factorio. Information About anything related to Factorio. Server Information. Factorio Versions. Server Resets. Train Loops.

The VBA will have such a set of files available on the VBA Bridge Resource CD for some major systems. Guess where you can get a copy

Live Agent for Administrators

LinkedIn Social Selling Linkedin Session 2 -Managing Your Settings Tagging And Groups

AIM OF THE GAME GLACIER RACE. Glacier Race. Ben Gems: 20. Laura Gems: 13

Kodu Game Programming

Introduction. Modding Kit Feature List

Adding in 3D Models and Animations

Clipping Masks And Type Placing An Image In Text With Photoshop

Pro Photo Photography Studio By Abranimations INSTRUCTION MANUAL

Game Design Curriculum Multimedia Fusion 2. Created by Rahul Khurana. Copyright, VisionTech Camps & Classes

Foreword Thank you for purchasing the Motion Controller!

Chief Architect X3 Training Series. Layers and Layer Sets

Counter-Strike Season Eighteen OVERVIEW

welcome to the world of atys! this is the first screen you will load onto after logging.this is the character-generating screen.

SAMPLE LIBRARY FOR KONTAKT

Operation Guide Internet Radio

C# Tutorial Fighter Jet Shooting Game

Official Documentation

EZLBot Documentation. Release 1.0. EZLBot

G54GAM Lab Session 1

Family Feud Using PowerPoint - Demo Version

Let's Race! Typing on the Home Row

This guide provides information on installing, signing, and sending documents for signature with

MRI Grid. The MRI Grid is a tool in MRI Cell Image Analyzer, that can be used to associate measurements with labeled positions on a board.

CS151 - Assignment 2 Mancala Due: Tuesday March 5 at the beginning of class

Set Up Your Domain Here

Pianola User Guide for Players How to analyse your results, replay hands and find partners with Pianola

Magic Contest, version 4.5.1

Introduction to Computer Science with MakeCode for Minecraft

TOPAZ LENS EFFECTS QUICK START GUIDE

Pianola User Guide for Players How to analyse your results, replay hands and find partners with Pianola

Ghostbusters. Level. Introduction:

Switching to Sub Category and Collapsible Skins

by Robert A. Landry, Central Mass Caricature Carvers, 12/5/14, Rev A

- Introduction - Minecraft Pi Edition. - Introduction - What you will need. - Introduction - Running Minecraft

Downloading a ROBOTC Sample Program

Instruction Manual for the Software of ASSAN V2 Series Receiver

Setting Up a Matrix/Template in the Vienna Instruments Player

Transcription:

Slayer Documentation by Greek2me Versions 2.0+

Slayer Documentation by Greek2me Table of Contents Getting Started... 1 Getting Into the Game... 1 Initial Setup... 1 Set Up Permissions... 1 Set a Host Name... 1 Gamemodes... 2 Changing the Gamemode... 2 Teams... 2 Creating Teams... 2 Editing Teams... 2 Placing Team Spawns and Other Team Bricks... 2 Joining Teams... 3 Advanced... 3 Changing Advanced Settings... 3 Default Advanced Settings List... 3 Alternate Methods of Editing... 4 Debug Modes... 4 Configuration File... 4 Modding Slayer... 5 Server... 5 Preferences... 5 Gamemodes... 6 Teams... 8 Client... 9

Getting Started Welcome to Slayer! This guide will help to make your Slayer experience easy and fun. Please follow along as I teach you about the mod. Getting Into the Game Slayer is started just like any other add-on for Blockland. 1. Install Slayer by placing Gamemode_Slayer.zip into your Blockland add-ons folder. 2. Start Blockland. 3. Click on Start Game. 4. Click the Add-Ons button in the Start Game menu. 5. Scroll down and make sure that Gamemode_Slayer is checked. 6. Start the game and enjoy! When you first spawn you will be immediately placed into the Slayer minigame. Initial Setup Changing settings for Slayer is extremely simple. First, open the Setup window using the instructions below. 1. Press Escape to open the Escape Menu. 2. Click on Minigames. 3. In the Minigame menu that appears, click on Slayer on the right-hand side. Now that you have the Setup window open, you can start changing settings. At the top of the window you will notice several tabs. The first tab is labeled General. You are already in this tab. This is where you can edit general minigame settings that would appear in the normal minigame window, along with gamemode settings. The second tab is labeled Teams. This tab may be grayed-out, depending on whether the gamemode you have selected uses teams. From this tab you can edit all team settings. The final tab is labeled Advanced. This tab features a list of advanced preferences that you can change. To apply any changes to settings that you made, click Update at the bottom of the window. You can also click Reset to update the minigame and then reset it. Set Up Permissions Slayer allows you to set permissions for who can edit, reset, and leave the minigame. You should make sure that these settings are the way you want them when you first set up Slayer. You can find them in the Advanced tab of the Setup window. 1 Set a Host Name When you set up Slayer for the first time, you should set the Host Name preference in the Advanced tab of the Setup window. By default it s set to HOST.

Gamemodes Slayer allows you to choose between many different gamemodes. Each of these offers a different style of game play and a different goal. Changing the Gamemode Changing the gamemode is simple. Just follow the steps below. 1. Open the Setup window. Make sure that you re on the General tab. 2. Scroll down until you see a category labeled Gamemode. 3. Click on the drop-down menu to see a list of gamemodes. Select one. 4. Once you ve selected a gamemode, you might notice that some new settings have appeared throughout the window. These are specific to the gamemode. 5. Once you are finished, click Update or Reset. Teams Teams allow for many interesting battles and games. Here s some information on how to use teams in Slayer. Creating Teams Creating teams in Slayer is a very simple process. Follow the steps below to learn how. 1. Open the Setup window and go to the Teams tab. (If the Teams tab is unavailable, make sure that you have a gamemode selected that uses teams.) 2. Click on the green button labeled New. A panel will appear listing options for your new team. 3. Set up your new team. You can find additional team options via the Advanced button on the New Team panel. Name The name of your team. Color Use the color picker to pick a color for your team. Uniform You can choose between Full, Shirt, or NONE. AutoSort Whether or not players are AutoSorted into this team. Max Players The maximum players that may join this team. Set to -1 for an infinite amount. Playertype/Starting Equipment Select a playertype and starting equipment for this team. Click on Reset Items/Playertype to set these to the minigame settings. 2 Editing Teams This is almost the same as creating teams. The only difference is that instead of clicking the New button, click the team s name in the list of teams. Placing Team Spawns and Other Team Bricks Placing team bricks is extremely simple. In this example we will use a Team Spawn Point brick.

1. Open the Brick Menu. By default this is done by pressing B. 2. Click on the Slayer tab. 3. Select your brick. In this case that s a Team Spawn Point brick. 4. Plant the brick where you want the team to spawn. 5. Paint the brick the team s color. This will set the spawn brick to that team. You can paint it again to set it to a different team. 6. If you have successfully set the spawn brick you will receive a message saying that it was set. Joining Teams By default, Slayer automatically sorts players into teams. However, teams can also be joined manually by typing /jointeam [team name]. This command also works for team swapping. Advanced Slayer includes many advanced features. Here you ll learn more about what they do and how to use them. Changing Advanced Settings Even though they re called advanced, changing advanced settings is simple. 1. Open the Setup window and go to the Advanced tab. 2. Here you will see a list with three columns: Category, Setting, and Value. 3. Category and Setting tell you about what the setting does. Value tells you what it s currently set to. 4. Click on a setting in the list to edit it. You will see a new control appear at the bottom of the window, along with a button labeled Apply. 5. Change the setting using the new control. Then click Apply. 6. Once you are finished changing settings, click Update or Reset. Default Advanced Settings List This is a list of all default advanced settings and a description of each. 3 Category Setting Description Bonus Kills Enable Enables kill sprees and double/triple/multi kills. Bonus Kills Kill Spree Start Determines how many kills are required for a player to be on a killing spree. Chat Enable Flood Protection Whether to enable chat Flood Protection. Chat Flood Protection Timeout The time before users can chat again after being blocked by Flood Protection. Chat Name Color Mode Whether to change players names or tags in chat to their team color, or change nothing at all. Gamemode Allow Dead Talking Whether players are allowed to talk once they have run out of lives. General Announcements Allows you to add server announcements that will be

displayed in the Announcements Bar of the Setup window. General Display Brick Plant Message Whether to display the message saying that you successfully planted a Slayer Brick. General Edit Rights Determines who can edit the minigame. General Enabled Automatic Updates Whether the server should check for updates on startup. General Leave Rights Determines who can leave the minigame. General Notify Players on Update Whether to tell players what settings were changed when updating the minigame. General Reset Rights Determines who can reset the minigame. Minigame Custom Rule A message displayed to players when they join and when the minigame is reset. Minigame Host Name The name that appears as the owner of the minigame in the Join Minigame window. Minigame Late Join Time Players that join the minigame this long after a minigame reset will not spawn. Set to -1 to turn off this feature. Minigame Name Distance How far away player s names can be seen from. Minigame Start When Server Starts Whether to start the minigame automatically when the server starts. Teams CP Max Ticks How long it takes to capture a capture point. Teams Max Events How many team events to add. Alternate Methods of Editing In addition to the button in the Join Minigame window, there are two other methods of opening the Setup window. The first is to bind a key to the Setup window. This can be done in the Blockland Options menu, under Controls. The second method is to type /Slayer Edit. There s also a command to reset the minigame. All you have to do is type /Slayer Reset. This allows your admins to reset the minigame even if they don t have the GUI. Debug Modes Slayer includes several debug modes. These modes echo information to the console. There are three debug levels: 0, 1, and 2. The default level is 0. This turns off debug mode. Level 1 is mainly used to tell when players edit the minigame or other similar events. Level 2 is not recommended for use. Using it will cause the console to be flooded with debugging information. You can change the mode in your config file. 4 Configuration File Slayer stores all of your settings in several configuration files. You can find them at config/server/slayer. Be careful if you edit one however, one mistake can do serious damage.

Modding Slayer Slayer is designed to be expandable by other add-ons. This guide will show you how to add your own gamemodes, modules, and other add-ons to Slayer. Server This section contains information about modifying the server side of Slayer. Preferences Slayer contains a preference system to allow users to easily change settings. Adding Preferences Slayer allows you to register preferences for your own mods. Use this example to help you create your preferences. if(!$slayer::server::dependencies::preferences) exec("add-ons/gamemode_slayer/dependencies/preferences.cs"); Slayer.addPref("Example Pref","Category","$variable","bool",1,0,1,-1,0,"Rules SD Mode","%mini.exampleCallback(%1,%2);",0); //BROKEN DOWN YOU DON T NEED TO INCLUDE THIS IN YOUR MODS Slayer.addPref( Pref Title, Category, Variable, Type, Default Value, Requires Reset, Notify Players, Admin Level, isobject, List, Callback, Preload ); 5 Title The title for your preference. Category The category for your preference. This is especially needed if you use the Advanced list. Variable The preference s variable. Type What type of control the preference will appear as in the GUI. o Bool A standard checkbox. o String A string value. Example string maxlength string 200 maxlength A number specifying how many characters are allowed. o Int An integer value. Example int minvalue maxvalue int -20 100 minvalue The minimum value allowed. maxvalue The maximum value allowed. o Slide A slider bar. Example slide minvalue maxvalue Ticks Snap slide 0 10 9 1 minvalue The minimum value allowed. maxvalue The maximum value allowed. Ticks The number of ticks on the slider. Snap Bool. Whether or not slider snaps to ticks. o List A drop-down list.

Example list TAB value1 Text1 TAB value2 Text2 list TAB 0 Shirt Only TAB 1 Full Uniform Value What the variable is set to when the matching text is selected. Text The text displayed for the matching value. You may have as many sets of values and text as you want. Default Value The value that the preference is originally set to. Requires Reset Whether the minigame needs to be reset when this preference is changed. Notify Players Whether to notify players that this preference has changed. Admin Level Determines permissions needed to edit this preference. o 0 Host o 1 Super Admin o 2 Admin o -1 Admin IsObject Whether the variable is an object. Used for things like items and playertypes. List Where to display this preference in the GUI. o Leave this value blank to not display this preference in the GUI or for a custom GUI. o Advanced Display this preference in the Advanced tab of the GUI. o Rules Display this preference in the General tab of the GUI in a rule list. Example Rules Type Category Rules CTF Points Type When to display this preference in the GUI. o Set to a gamemode s fname to only display for that gamemode. o Teams Only display for gamemodes that use teams. o!teams Only display for gamemodes that don t use teams. o Rounds Only display for gamemodes that use rounds. o!rounds Only display for gamemodes that don t use rounds. Callback A function to call when the preference is changed. o Example examplefunction(%1,%2); or %mini.examplefunction(%1,%2); %1 The new value of the preference. %2 The old value of the preference. %mini The Slayer minigame. Preload Whether this needs to load before anything else. Getting and Setting Preference Values In addition to simply using the variable of the preference, you can also use some functions to get or set the value of it. This is extremely useful in some cases. //SETTING PREFERENCES Slayer.setPref( Category, Title,%value); //GETTING PREFERENCE VALUES Slayer.getPref( Category, Title ); 6 Gamemodes Gamemodes are a major part of Slayer. With scripting experience, you can easily create your own. In addition to reading this documentation, you should also look at some of the gamemodes included with Slayer.

Adding Gamemodes For your gamemode to appear in the GUI, you must first register it. if(!$slayer::server::dependencies::gamemode) exec("add-ons/gamemode_slayer/dependencies/gamemode.cs"); Slayer.Gamemode.addMode("Team Slayer","TSlyr",1,1); //BROKEN DOWN YOU DON T NEED TO INCLUDE THIS IN YOUR MODS Slayer.Gamemode.addMode( "Name", "fname", Use Teams, Use Rounds ); Name The UI name for your gamemode. This is what players and users will see. fname A single-word identifier for your gamemode. This is used in functions. Use Teams Bool. Whether your gamemode uses teams. Use Rounds Bool. Whether your gamemode uses rounds (lives, points, time). Gamemode Functions Slayer provides your gamemode with many functions to allow it to change the way the game works. All function names below are preceded by Slayer_FNAME_ where FNAME is your gamemode s fname. This allows the function to only be called when your gamemode is active. 7 Function candamage(%mini,%obja,%objb) canuse(%mini,%player,%obj) onchat(%mini,%client,%msg) oncpcapture(%mini,%brick,%color,%oldcolor,%client) oncpreset(%mini,%brick,%color,%oldcolor,%client) onexportprefs(%path) onjoin(%mini,%client) onleave(%mini,%client) onmodeend(%mini) onmodestart(%mini) onobservertrigger(%mini,%obj,%cam,%btn,%state,%client) onrules(%mini,%client) onscore(%mini,%client,%flag) onslyrbrickadd(%mini,%brick,%type) onslyrbrickremove(%mini,%brick,%type) onspawn(%mini,%client) Description Used to find if the minigame can damage an object. Return 1 or 0. Used to find if the minigame can use an object. Return 1 or 0. Called when a client sends a chat message. Called when a capture point is captured. Called when a capture point is reset. Called when preferences are exported to a file. Called when a client joins the minigame. Called when a client leaves the minigame. Called when the gamemode ends. Useful for gamemode cleanup. Called when the gamemode starts. Called when a client clicks to respawn. Called when the rules are displayed to a client. Called when a client s score changes. Called when a Slayer brick is added. Called when a Slayer brick is removed. Called when players spawn.

onvehiclespawn(%mini,%brick,%vehicle,%a) pickspawnpoint(%mini,%client) postdeath(%mini, %client,%obj,%killer,%type,%area) postreset(%mini,%client) postvictory(%mini,%winner,%namelist) predeath(%mini, %client,%obj,%killer,%type,%area) prereset(%mini,%client) previctory(%mini,%winner,%namelist) Teams_onAdd(%mini,%teamSO,%team) Teams_onChat(%mini,%client,%msg) Teams_onJoin(%mini,%team,%client) Teams_onLeave(%mini,%team,%client) Teams_onRemove(%mini,%teamSO,%team) victorycheck_lives(%mini) victorycheck_points(%mini) victorycheck_time(%mini,%ticks) Called when a vehicle spawns. Used to find where the client will spawn. Return a brick to set that as the spawn point. Called when players die. Called after the minigame is reset. Called after the winner of the round is announced. Called when players die. Return 1 TAB blah for a special death message. Called before the minigame is reset. Called before the winner of the round is announced. Called when a team is added. Called when a client sends a teamchat message. Called when a client joins a team. Called when a client leaves a team. Called when a team is removed. Used to determine if anyone has won by lives. Return a client or team to specify a victor. Used to determine if anyone has won by points. Return a client or team to specify a victor. Used to determine if anyone has won by time. Return a client or team to specify a victor. Teams Teams can be easily edited by other mods. Team Preferences Slayer allows you to register preferences for teams. if(!$slayer::server::dependencies::teams) exec("add-ons/gamemode_slayer/dependencies/teams.cs"); Slayer.Teams.addPref("Example Pref","Category","variable","bool",1,1,-1,0,"Advanced","%team.doStuff(%1,%2);"); 8 //BROKEN DOWN YOU DON T NEED TO INCLUDE THIS IN YOUR MODS Slayer.addPref( Pref Title, Category, Variable, Type, Default Value, Notify Players, Admin Level, isobject, List, Callback );

9 Title The title for your preference. Category The category for your preference. This is especially needed if you use the Advanced list. Variable The preference s variable. o Example If you set the variable to testing, you can access it via %team.testing. Type What type of control the preference will appear as in the GUI. o Bool A standard checkbox. o String A string value. Example string maxlength string 200 maxlength A number specifying how many characters are allowed. o Int An integer value. Example int minvalue maxvalue int -20 100 minvalue The minimum value allowed. maxvalue The maximum value allowed. o Slide A slider bar. Example slide minvalue maxvalue Ticks Snap slide 0 10 9 1 minvalue The minimum value allowed. maxvalue The maximum value allowed. Ticks The number of ticks on the slider. Snap Bool. Whether or not slider snaps to ticks. o List A drop-down list. Example list TAB value1 Text1 TAB value2 Text2 list TAB 0 Shirt Only TAB 1 Full Uniform Value What the variable is set to when the matching text is selected. Text The text displayed for the matching value. You may have as many sets of values and text as you want. Default Value The value that the preference is originally set to. Notify Players Whether to notify players that this preference has changed. Admin Level Determines permissions needed to edit this preference. o 0 Host o 1 Super Admin o 2 Admin o -1 Admin IsObject Whether the variable is an object. Used for things like items and playertypes. List Where to display this preference in the GUI. o Leave this value blank to not display this preference in the GUI or for a custom GUI. o Advanced Display this preference in the Advanced team options. Callback A function to call when the preference is changed. o Example examplefunction(%1,%2); or %mini.examplefunction(%1,%2); %1 The new value of the preference. %2 The old value of the preference. %mini The Slayer minigame. %team The team being edited. Client Below is a list of Slayer s client functions and a description of each. Each of these belongs to the GameConnection class.

Function adddeaths(%flag) addkills(%flag) addlives(%flag) applyuniform() dead() forceequip(%slot,%item) getdeaths() getkills() getlives() getscore() getteam() nextcamtarget() setdead(%flag) setdeaths(%flag) setkills(%flag) setlives(%flag) setteam(%teamname) updateequip(%slot,%old) Description Adds to the client s death count. Adds to the client s kill count. Adds to the client s life count. Applies the client s team uniform. Returns whether the client is dead (can respawn). Forces the client to equip a certain item. Returns the client s death count. Returns the client s kill count. Returns the client s life count. Returns the client s score. Returns the client s team (scriptobject). Moves the client s camera to the next player when in the deadcam. Sets whether the client is dead (can respawn). Sets the client s death count. Sets the client s kill count. Sets the client s life count. This is used for the setteam event, but it can be used in mods as well. Updates the client s item to match the minigame setting if their item has not changed from %old. 10