1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New Skript Coming

Discussion in 'Skript' started by Hola, May 3, 2017.

Thread Status:
Not open for further replies.
  1. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    But that's the point of Skript. To provide a simple way to create plugin-like features for your server without having to learn Java and the parts related to it instead just focusing on development. PHP's syntax issues are in no way the same as Skripts. The need for actual syntax has never existed nor has anyone ever wanted to have a set syntax pattern. The community that exists around Skript exists because there isn't anything confusing about it. Sure, you can make awesome stuff and have it get confusing, but the basics of Skript are simple to pick up. It's just English words - every other programming language (in English) uses English words. Skript makes sentences which have sense and some context to them. Like, your example is more confusing, in your version of Skript than in the current versions of Skript (I'm not calling it New Skript or Old Skript, because you're not released anything, nor does your version replace Skript).

    Code (Skript):
    1.  
    2. on place of dirt or grass:
    3.   if player has permission "demoPlugin.useDirt":
    4.     cancel event
    5.     kill the player
    6.     send message "Evil %event-block% was destroyed at %event-location%." to console
    7.  
    Your example also has no consistency. You capitalise the start of each word in the event, then use camelcase for block.Destroy() and sender.Kill(), but then capitalise the start of Console and Log.

    ---------------------
    A message to everyone, please stop asking for a thread to be locked or cleaned because you disagree. While the idea by Hola isn't being accepted by the majority, you're more than welcome to not read the thread or you can discuss with OP and others. That's kinda the point of forums.

    Umbaska Modules section exists because it's an expansion. They're similar to skqAddons.
     
    • Like Like x 2
  2. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I've added a few more syntaxes to my Skript addon. Here is what I can now do:
    Code (Skript):
    1. If de surbur owner is a nub:
    2.     If de surbur iz running Bukkit:
    3.         Rape server
    4.         Tell the owner to run Spigot
    You can also do this:
    Code (Skript):
    1. On join of nub surbur:
    2.     Don't let them join
    Please give me your opinions.
     
    • Winner Winner x 2
  3. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    This was funny the first time. Stop recycling the same joke.
     
    • Like Like x 1
  4. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Nah
     
  5. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Code (Skript):
    1. [LoadJob]
    2. @Repeat(3600000)  // Every hour
    3. func LoopExample()
    4. {
    5.     Server.Message("You should try New Skript");
    6.     NsStore.Set("peopleUsingNewSkript", Int(NsStore.Get("peopleUsingNewSkript")) + 1); // Because one person will start using it after the ad
    7.  
    8.     loop player in server.ConnectedPlayers
    9.     {
    10.         player.Message("Hello there, New Skript rules");
    11.     }
    12.  
    13.     // But there is also a convenience method that does the same thing
    14.     server.ConnectedPlayers.Message("Hello this does the same thing");
    15. }
    Okay, all this is nice and all, so how about we try to make a new New Skript that actually does something?

    sample.ns
    Code (Skript):
    1. [LoadCommand]
    2. @Command("createsurvey", "/createsurvey <name> <question>", "Make a new survey")
    3. @Permission("survey.createSurvey")
    4. func CreateSurvey(Player sender, ArgList args)
    5. {
    6.     string name <- args.Get("name");
    7.     NsStore.Set("survey.list", NsStore.Get("survey.list") + ", " + name);
    8.     NsStore.Set("survey." + name + ".question", args.Get("question"));
    9.     sender.Message("New servey created. Add questions with /addquestion <survey> <question>");
    10. }
    11.  
    12. [LoadCommand]
    13. @Command("listsurveys", "/listsurveys", "List all the surveys made")
    14. @Permission("survey.listSurveys")
    15. func List(Player sender, ArgList args)
    16. {
    17.     sender.Message("These are the surveys: " + NsStore.Get("survey.list"));
    18. }
    19.  
    20. [LoadCommand]
    21. @Command("respond", "/respond <survey> <response>", "Look at the responses to a survey")
    22. @Permission("survey.respond")
    23. func List(Player sender, ArgList args)
    24. {
    25.     string query <- "survey." + args.Get("survey") + ".responses";
    26.     NsStore.Set(query, NsStore.Get(query) + "\n" + args.Get("response"));
    27. }
    28.  
    29. [LoadCommand]
    30. @Command("responses", "/responses <survey>")
    31. @Permission("survey.readResponses")
    32. func List(Player sender, ArgList args)
    33. {
    34.     sender.Message("Responses:\n" + NsStore.Get("survey." + args.Get("survey") + ".responses"));
    35. }
    36.  
    37. [LoadJob]
    38. @Repeat(1800000) // 30 minutes
    39. func Annoy()
    40. {
    41.     Server.Message("Have you tried any surveys? Use /listsurveys soon.");
    42. }
    NsStore is just a simple key-value storage aimed for quick-and-dirty plugin like this one. So, from this we can see that New Skript is easier than Java, has a syntax appropriate for this kind of work, and has more structure than Old Skript.
     
  6. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    It's very easy for you to just make up random syntax but when are you actually going to code the plugin lol
    --- Double Post Merged, May 7, 2017, Original Post Date: May 7, 2017 ---
    I'm quite sure no one here is willing to create you a new language just because you want it. Also, I will laugh along with the rest of the community if you end up creating this in Skript.
     
    • Agree Agree x 1
  7. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    This is basically the equivalent of writing in Java. Stop, right now. This isn't going to get anywhere.
     
  8. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Was just biting old friend, i dont' care about the umbaska modules :emoji_slight_smile:
     
  9. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    I am not asking anyone to write it for me…
    Also, why would I write this in Old Skript? That would be so pointlessly difficult and bad.
     
  10. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    You strike me as the sort of person that needs help getting dressed in the morning.
     
    • Funny Funny x 1
  11. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    We are dissing each other more than the rappers do.
    I like that.
     
  12. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    No offense, but I don't see a point of using this plugin. I'd rather do it in Skript, which is 10x simpler and quicker to do than New Skript. I'm sure the majority of the community rather use a more simplistic plugin, Skript, than a more java-like plugin, New Skript.
     
    • Agree Agree x 2
  13. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Are you actually going to add anything useful to this post?

    If you're not getting anyone else to make it then hurry up and actually start lol. We don't need random examples of syntax, it's better if you actually give us a working prototype.
     
  14. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Probably not. You?
     
  15. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Hi everyone,
    The Skommittee has heard your concerns. New Skript will no longer be new, separate language. New Skript is now going to use Python to achieve the same goals. This way, at least real, applicable language skills can be learned without having to learn Java, while maintaining an easier and faster way of creating plugins for Minecraft servers. I will post some examples of the new Python syntax. I hope nobody is disappointed by this change, but it is for the best. Hopefully, a working demo will be available sooner thanks to the barriers of having to actually make a language.
     
  16. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    If that's true then 'New Skript' is already done lol. http://www.jython.org/
     
    • Winner Winner x 1
  17. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Yes, I have seen Jython. New Skript Python Edition is not like that. NSPE is going to be way nicer than directly accessing the Java library.
     
  18. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    NSPE?
    --- Double Post Merged, May 8, 2017, Original Post Date: May 8, 2017 ---
    Jython is already working and does everything it needs to do. By making 'New Skript Python Edition' you change nothing. If we wanted python on minecraft we'd go to the already finished and working project.
     
    • Agree Agree x 1
  19. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    [​IMG]
     
  20. ShaneBee

    Moderator Resource Staff Supporter + Addon Developer

    Joined:
    Sep 7, 2017
    Messages:
    2,184
    Likes Received:
    220
    Either way, Jython is already working and already has a support base. This project hasn't even been made. Why are you remaking something for ease of use if it already works?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...