switch (select("Option 1:Option 2:Option 3")) { // Map names setarray .@map_name$[0], "map_name", "map_name2", "map_name3"; // Coordinates setarray .@coords[0], 50, 50, 60, 60, 70, 70; // Menu options setarray .@options$[0], "Option 1", "Option 2", "Option 3"; // Menu dialogue menu implode(.@options$, ":"), -; .@i = @menu - 1; .@x = .@i * 2; .@y = .@x + 1; // Warp to target map specialeffect2 EF_PORTAL warp .@map_name$[.@i], .@coords[.@x], .@coords[.@y]; close;}
You would add a script like this (pseudocode):
switch (select("Option 1:Option 2:Option 3")) { // Map names setarray .@map_name$[0], "map_name", "map_name2", "map_name3"; // Coordinates setarray .@coords[0], 50, 50, 60, 60, 70, 70; // Menu options setarray .@options$[0], "Option 1", "Option 2", "Option 3"; // Menu dialogue menu implode(.@options$, ":"), -; .@i = @menu - 1; .@x = .@i * 2; .@y = .@x + 1; // Warp to target map specialeffect2 EF_PORTAL; warp .@map_name$[.@i], .@coords[.@x], .@coords[.@y]; close;}
(pseudocode):
Just according to the link.Pseudocode (sometimes written as pseudo-code) is a form of source code that is written for humans, not machines, to read. It is often written to show how an algorithm works.
We use essential cookies to make this site work, and optional cookies to enhance your experience.