viewing paste Warp Scroll Example | C

Posted on the | Last edited on
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
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
    warp .@map_name$[.@i], .@coords[.@x], .@coords[.@y];
    close;
 
}
Viewed 1105 times, submitted by mumbles.