Files

> > CS2D > Lua Scripts > [Yank] Who THIS (Slightly Smarter Buttons)
Files overviewCS2D overviewLua Scripts overview

English [Yank] Who THIS (Slightly Smarter Buttons) >

10 comments3 kb, 369 Downloads

old [Yank] Who THIS (Slightly Smarter Buttons)

_Yank
User Off Offline

Ayo playboys,

here am I again with another useful script designed to help you map making ninjas. This time I bring you guys Who THIS (Who ToucHed It Script), a simple, small and light script that allows the player based triggers (buttons and move triggers) to take actions based on the player who used/moved over them (and not only!).

° Utilization

It is actually pretty simple to use, you just add a trigger entity on the map and set it to trigger either:

wthisC <insert CS2D console command here>
- if you want to execute a CS2D command or/and...
wthisL <insert Lua command here>
- if you want to execute a Lua command or/and...
wthisT <insert entity name here>
- if you want to trigger an entity with an ID based name

And use one of the codes that will then be replaced with their respective function: >
Extremely detailed illustration/example, althout I recommend you to analyze the demo map >


° Installation

Just paste the contents of the zip on your root directory.

° Notes

• I'm planning on expanding the script in the future
• You can't use commas on the commands because CS2D will identify them as a new entity to trigger
• Therefore to use commas you'll need to instead write
\44
, and then the script will auto replace it with a comma
• I highly recommend you to analyze the demo map on the editor to understand how the script works
• You are free to pack this script with your maps as long as you proper credit me
• If you want a feature to be added, changed or removed, be sure to comment about it
• Yank is failed attempt of having a meme

° License >

So yeah fam, hope this helps u out makin' sum real gangsta maps!
edited 6×, last 09.07.16 03:12:19 pm
Approved by Sparty

Download Download

3 kb, 369 Downloads

Comments

10 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

Gaios
Reviewer Off Offline

not bad
I like it!

old

_Yank
User Off Offline

@user VADemon: True that but, doesn't the trigger_if run that risk aswell ? And yeah, I wonder how there isn't any big lua mapping toolset out there... At this point I'm thinking about creating one.

Anyways, thanks to y'all

old

Masea
Super User Off Offline

"I will find you and I will kill you..."

10/10
I like it!

old

VADemon
User Off Offline

I love map editor extensions, but I'm concerned about security.
Maps should be considered untrusted user code and hence there are many possibilities to exploit wthisL and wthisC.
I like it!

old

Nekomata
User Off Offline

Nice, yanananaki-kun. Definitely useful for mappers if they're expanding their mapping horizons or some nifty map/script integrations.
I like it!

old

sonkii
User Off Offline

Description has written
Useful script designed to help you map making ninjas


Lolz,Good job.
I like it!

old

Angel Montez
BANNED Off Offline

Nice good job
I like it!

old

Waldin
User Off Offline

This with the user Baloon's idea and every trigger entities (and also every trigger, but i think thats impossible) can be the best

edit: also breakable
I like it!
edited 1×, last 11.07.16 03:48:29 am

old Keep it up.

Baloon
GAME BANNED Off Offline

Pretty useful. Would be good on next update, what about
wthisL
to execute LUA command. Example:
wthisL print Player %ID_Name% are using button
So we can see use-button logs.
I like it!
To the start Previous 1 Next To the start