26 lines
729 B
Plaintext
26 lines
729 B
Plaintext
============================================================================================================
|
|
Item Menus and Inputs
|
|
============================================================================================================
|
|
|
|
How to implement -
|
|
1. Create an NPC with the desired script as an event.
|
|
2. Add 'doevent "npcname::eventname";' to your item script.
|
|
|
|
Example:
|
|
|
|
- script validation_sys -1,{
|
|
OnValidate:
|
|
mes "Please type: I am validated.";
|
|
input @validate$;
|
|
next;
|
|
if(@validate$ == "I am validated"){
|
|
mes "You are validated";
|
|
}else{
|
|
mes "You are not";
|
|
}
|
|
close;
|
|
}
|
|
|
|
501,Red_Potion,Red Potion,0,50,,70,,,,,0xFFFFFFFF,7,2,,,,,,{ doevent "validation_sys::OnValidate"; },{},{}
|
|
|