
This is part 2 of 2 script that i upload. Part 1:




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


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








Install it as usual(but with *.txt instead of *.lua)












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


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)


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























Approved by Seekay
Download
670 b, 441 Downloads