Jump to content

Photo

Constants?


  • Please log in to reply
3 replies to this topic

#1 RingleaderStudios

RingleaderStudios

    Initiate

  • Members

Posted 09 January 2019 - 06:21 PM

im trying to set up ghostzh and it says ill need some constants but idk what those are



#2 Avataro

Avataro

    Quest maker

  • Banned
  • Real Name:Robin
  • Gender:Male
  • Location:Germany

Posted 09 January 2019 - 06:44 PM

In the script file, the lines that start with "const int". There's usually explanations to the right that explain what you should replace the number with.



#3 ZoriaRPG

ZoriaRPG

    The Timelord

  • ZC Developers
  • Gender:Unspecified
  • Location:Prydon Academy

Posted 10 January 2019 - 08:51 AM

im trying to set up ghostzh and it says ill need some constants but idk what those are

 

A constant is a script value, that can be reused, with a value that never changes when the script runs (a variable can change). It is always referenced by its identifer (name), and is used in the place of a liternal mumber, preventing binding hardcoded numeric values.

 

Constants are utomtically converted into their literal numeric value during compilation of a script file, and can only be changed by recompiling.

 

The main constant that you need tgo set, when configuring ghost.zh,, is an invisible combo:

 

Create a new combo, assign a blank tile to it, then in the file ghost.zh, assign GH_INVISIBLE_COMBO (this is its identifier) to the combo that you created.

 

e.g., If you created combo 2100, for this, then you assign should look like:

GH_INVISIBLE_COMBO  = 2100;

 

All of the constants that you need to set are in that file, but most are pre-configured to values used by the Classic tileset.

 

What tileset are you using?



#4 RingleaderStudios

RingleaderStudios

    Initiate

  • Members

Posted 10 January 2019 - 07:55 PM

im using EZGBZ2.5 and thank you so much this really helps (note) i might give up i went into ghost.zh to try but i just got confused


Edited by RingleaderStudios, 10 January 2019 - 08:18 PM.



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users