Files

> > CS2D > Lua Scripts > <UN> YouHelpMe : v0.2
Files overviewCS2D overviewLua Scripts overview

English <UN> YouHelpMe : v0.2 >

3 comments6 kb, 110 Downloads

old <UN> YouHelpMe : v0.2

Komo the Cat
User Off Offline

> Homepage | Source Code


• Changelog •
Full changelog can be found in here.

Spoiler >



YouHelpMe (YHM) is a CS2D Lua script for showing hint and tips upon spawning.

I made this script just for fun and intended to replace TipsSpawner (which is now gone due to reasons).


∗ Why YHM? ∗
• Configurations are in JSON file!
• Small bundled script under 1mb (as of v0.2).


° Installation °
"It is shrimple as you see"

Unzip the .zip and move
yhm.lua
into your
sys/lua/autorun
.

For older releases, it is available in the Github Releases.

> Configuration <
JSON configuration used to handle how YHM configured, it is placed in
sys/yhm-config.json
. Here's the example.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
    "colorMessage": {
        "test": "0,255,255"
    },
    "messages": {
        "T": [
            "no color T",
            "Hint: hint color T",
            "Tips: tips color T",
            "Test: test color T"
        ],
        "CT": [
            "no color CT",
            "Hint: hint color CT",
            "Tips: tips color CT",
            "Test: test color CT"
        ]
    }
}

A JSON schema file is available to help you on writing configuration.
1
2
3
{
    "$schema": "https://raw.githubusercontent.com/UrNightmaree/cs2d-repo-manager/master/schema/yhm-config.schema.json"
}

Check out the Documentation also.


∗ API ∗
YHM also has an API!, you just need to
require
it and you should able to use global
YHM
which is used as namespace for the API.

For API docs, it is placed in Github repository of this script. Click here.


∗ License ∗
This script licensed under MIT License, which means you can modify or use this as you want!

Spoiler >


(I had to reupload the file again since some issues happen with it)
edited 3×, last 11.04.23 01:00:35 am
Approved by DC

Download Download

6 kb, 110 Downloads

Comments

3 comments
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in

old

cs2d_is_a_Gem
User Off Offline

Cool, keep it up.
I like it!

old

Komo the Cat
User Off Offline

@user Gaios: I've already planned for that, even put it in Todo list. You could can check the homepage and go to TODO section, there should be a list what i've implemented and what not.

old

Gaios
Reviewer On Online

It could be better if we were able to add messages for both CT and T in a single array instead of copying them for both arrays. Then, at the start of the round, you could randomly decide (with a 50% chance) whether to show a message from ALL or from CT/T for each player.
To the start Previous 1 Next To the start