Jump to content

Photo

How to ZScript?


  • Please log in to reply
6 replies to this topic

#1 ZCnoob

ZCnoob

    Newbie

  • Members

Posted 11 June 2019 - 06:52 PM

I have heard about using ZString and since I'm working on a project to experiment with the program I feel like learning how to use ZString would help. Information is always appreciated, the more I learn the more I can do. My version is 2.53 

 

EDIT: I'm sorry I completely blanked here, I mean to say ZScript, not ZString


Edited by ZCnoob, 11 June 2019 - 10:47 PM.

  • Aevin likes this

#2 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 11 June 2019 - 10:00 PM

What is ZString? Is there an external string editor for ZC that I've never heard of?



#3 ZCnoob

ZCnoob

    Newbie

  • Members

Posted 11 June 2019 - 10:48 PM

What is ZString? Is there an external string editor for ZC that I've never heard of?

 

I'm sorry, I blanked when writing this apparently, my bad. I meant to say ZScript, not ZString.



#4 Aevin

Aevin

  • Members
  • Pronouns:He / Him
  • Location:Oregon

Posted 12 June 2019 - 12:11 AM

This thread's a great place to start. It introduces the scripting language as well as some general programming concepts, and gets to more advanced topics in later posts. I hope it's helpful.

 

Oh, and also, welcome to the community!


  • ShadowTiger and ZCnoob like this

#5 Moosh

Moosh

    Tiny Little Questmaker

  • ZC Developers

Posted 12 June 2019 - 04:58 AM

A serious answer to your question would be basically what Aevin linked. A more silly but still kinda serious one: you gotta write some words down on a notepad and cross your fingers that they're good ones. They won't be. Either because the compiler doesn't like it cause it's written wrong or logic doesn't like it because you planned it wrong. One of the two will happen and you will wonder why. At this point you dig through the documentation, and maybe ask a few questions on the Discord and eventually spot that dumb mistake you made and make some incremental progress towards a larger goal. And it will feel great. On some level you've gotta learn to love that act of repetition and incremental progress (or be just insane already), else you will go mad. It's not for everyone. :P

 

Also about that thing I mentioned about asking questions on the Discord...Structure and organization are more important at times than the thing working. If you want to learn, you gotta ask questions. If you want to ask questions, you've gotta have people be willing to look and listen and not have their eyes start bleeding out their sockets. Some consistent indenting and the occasional clarifying comment can go a long way.


  • ShadowTiger and ZCnoob like this

#6 ShadowTiger

ShadowTiger

    The Doctor Is In

  • Members

Posted 12 June 2019 - 01:44 PM

Well said, Moosh. I've always enjoyed the luxury of both minor OCD and wanting others to very, very easily be able to read and interpret my code, so I comment the living hell out of anything that I script, however rare it is. But the more I comment things, the more I can see the "flow" of what I want to do. If all that you see is a gibberish-like pile of numbers and symbols, it becomes harder to read and work. Don't be afraid to use line-space for comments.
  • ZCnoob likes this

#7 ZCnoob

ZCnoob

    Newbie

  • Members

Posted 12 June 2019 - 05:12 PM

This thread's a great place to start. It introduces the scripting language as well as some general programming concepts, and gets to more advanced topics in later posts. I hope it's helpful.

 

Oh, and also, welcome to the community!

 

Thank you for this, really some helpful stuff here! Also thank you for the welcome, I'm sure I'm here to stay.

 

A serious answer to your question would be basically what Aevin linked. A more silly but still kinda serious one: you gotta write some words down on a notepad and cross your fingers that they're good ones. They won't be. Either because the compiler doesn't like it cause it's written wrong or logic doesn't like it because you planned it wrong. One of the two will happen and you will wonder why. At this point you dig through the documentation, and maybe ask a few questions on the Discord and eventually spot that dumb mistake you made and make some incremental progress towards a larger goal. And it will feel great. On some level you've gotta learn to love that act of repetition and incremental progress (or be just insane already), else you will go mad. It's not for everyone. :P

 

Also about that thing I mentioned about asking questions on the Discord...Structure and organization are more important at times than the thing working. If you want to learn, you gotta ask questions. If you want to ask questions, you've gotta have people be willing to look and listen and not have their eyes start bleeding out their sockets. Some consistent indenting and the occasional clarifying comment can go a long way.

 

Even if it is confusing I'm sure I'll figure it out over time! Thank you for the information.


  • ShadowTiger and Moosh like this


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users