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

10 comments
09.07.16 02:46:56 am
like 8 like it!
3 kb, 55 Downloads
_Yank
User
Offline Off
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!
imageimageimageimageimage
edited 6×, last 09.07.16 03:12:19 pm
ok This file has been reviewed and approved by Sparty (09.07.16 04:27:21 am)

Comments

10 comments
Goto Page
To the start Previous 1 Next To the start

Log in!

You need to log in to be able to write comments!Log in
05.04.17 07:29:06 pm
like I like it!
Up
Gaios
Security Supporter
Offline Off
not bad
11.07.16 12:10:10 pm
Up
_Yank
User
Offline Off
@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
11.07.16 10:06:24 am
like I like it!
Up
Masea
Super User
Offline Off
"I will find you and I will kill you..."

10/10
11.07.16 08:56:09 am
like I like it!
Up
VADemon
User
Offline Off
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.
11.07.16 07:34:52 am
like I like it!
Up
Nekomata
User
Offline Off
Nice, yanananaki-kun. Definitely useful for mappers if they're expanding their mapping horizons or some nifty map/script integrations.
09.07.16 03:19:07 pm
like I like it!
Up
PeculiarLookingLink
User
Offline Off
Description has written:
Useful script designed to help you map making ninjas


Lolz,Good job.
09.07.16 03:13:00 pm
Up
_Yank
User
Offline Off
@user Baloon, @user Waldin: Added what both requested
09.07.16 02:26:49 pm
like I like it!
Up
Angel Montez
BANNED
Offline Off
Nice good job
09.07.16 05:10:54 am
like I like it!
Up
Waldin
User
Offline Off
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
edited 1×, last 11.07.16 03:48:29 am
09.07.16 04:40:25 am
like I like it!
Up
Baloon
GAME BANNED
Offline Off
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.
To the start Previous 1 Next To the start