Skript-Floodgate-Api

Skript Skript-Floodgate-Api 2024-02-12

Source of resources
Original
Copyright link
https://imc.re/

Skript-Floodgate-Api​


ZIMZAZA4の最新力作(bus

使用Skript脚本实现Floodgate接入API调用

如何安装?

  • 装上Skript, Skript-Reflect 插件
  • 将该脚本放入该放的文件夹 plugins/Skript/scripts/
  • 启动服务器
前置插件:

示例

Create a Form:

set {_Form} to simple form with title "hello"
set {_Form} to modal form with title "hello" and buttons "button1" "button2"
set {_Form} to custom form with title "hello"


Add something to a Simple Form:

add button display "button" to form {_simpleform}
add button display "button with url image" with url icon "url" to form {_simpleform}
add button display "button with path image" with path icon "path" to form {_simpleform}
add content "content" to form {_Form}


Send Form:

send form {_Form} to {_player}
send form {_Form} with id "Form_id" to {_player}


Events:

on Click Form Button: (ModalForm and SimpleForm)

on click form button:
set {_id} to data "form-id"
set {_button} to data "button-id"


on Submit Custom Form: (CustomForm)

on submit custom form:
set {_id} to data "form-id"
set {_input} to input component id 0 of data "response"
  • Like
Reactions: 狐风轩汐
Author
SummerGoro
Price
100金粒
Downloads
57
Views
1,481
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from SummerGoro

Share this resource