This is part 2 of 2 script that i upload. Part 1: MikuAuahDark: Move Direction V1.0(part 1 of 2) (3)
Table of Contents
1. Table of Contents
2. Description
3. Features
4. How to Install
5. Reserved Global Variables
6. Information
7. More Information
8. How to Use
9. Notes
10. Rules
11. Versions
12. Another MikuAuahDark scripts
Description
This LUA allows you to create special function for Trigger_If.
For example when you trigger a button on map that target to Trigger_If, Trigger_If can do and call a function that specified at map
Features
Fast
Only use 2 hooks
Small
(Maybe) Simple
How to Install
Install it as usual(but with *.txt instead of *.lua)
Reserved Global Variables
IF
Information
Hooks: 2( usebutton, triggerentity)
Size: 740 Bytes
Lines: 41
More Information
The called function from Trigger_If passes those values
func(id,x,y,sx,sy)
id - Player ID that trigger this entity(it cannot to be triggered via script, so it never 0)
x - x position of the trigger_if
y - y position of the trigger_if
sx - x position of the button
sy - y position of the button
How to Use
1. Create Trigger_Use and Trigger_If
2. Link Trigger_Use to Trigger_If(It mean that when you press button, it trigger the Trigger_If)
3. On Trigger_If, fill the Trigger field with If.DoCall(WARNING: Case-Sensitive)
4. On condition field, fill it with the function name that you want to call when this entity is triggered by player
5. Done, Save, Test!(I already ensure that you already install the script in this step)
Notes
1. It must directly triggered by trigger_use
2. You could NOT alter/edit the IF table while this script is running
3. Feedbacks? Suggestions? always on comments
4. Pictures of course useless
Rules
You can use it (for your server)
You can edit it (with your own risk)
Say MikuAuahDark made it and NOT made by you
Re-upload to another website. The file must not modified(original) and put me on credits
Say this is yours a.k.a Steal
Re-upload on unrealsoftware (even the edited version)
Versions
V1.0
Initial Release
Another MikuAuahDark scripts
MikuAuahDark: Move Direction V1.0(part 1 of 2) (3)(Part 1 upload)
Timer Extra function(timerEx) v4.0 (12)
Achievements v1.0 (7)
Approved by Seekay
Download
670 b, 389 Downloads