DoomOnly Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Getting started with ZScript

Go down

Getting started with ZScript Empty Getting started with ZScript

Post by MrBadGuy Mon Jan 28, 2019 2:02 pm

This is a place for all the tips, tricks and tools for ZScript and it will be updated over time.

The key differences between Zscript and Decorate:

  • Files are defined in ZSCRIPT.TXT
  • Every line (except if and the end of {} brackets ) has to end with semicolon ;
  • Actor definition starts with Class instead of Actor, using actor as a parent

    • Class EmptyActor: actor
    • Class NewImp: DoomImp


  • Actor flags have to be separated by {} and the keyword Default


    • Class Name: Actor
      {
      Default
      {
      +Flag;
      +Flag2;
      }
      States
      {
      ....
      }

      }






Links:
ZScript reference:  https://zdoom.org/wiki/ZScript
More advanced features: https://gist.github.com/marrub--/8303813d9417f23da17eee5b802a252a

MrBadGuy
Admin

Posts : 19
Join date : 2019-01-27

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum