Jump to content

Photo

Constants?


  • Please log in to reply
3 replies to this topic

#1 RingleaderStudios

RingleaderStudios

    Initiate

  • Members

Posted 09 January 2019 - 07:21 PM

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



#2 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 09 January 2019 - 07: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 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 10 January 2019 - 09: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 - 08: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 - 09:18 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users