Jump to content

Photo

Non-hexadecimal screen numbers


  • Please log in to reply
7 replies to this topic

#1 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 31 December 2014 - 10:37 AM

After looking for something like this on the forums and zcwiki, I made a "map grid" with the non-hexadecimal screen numbers, which you might need if working with warps or such in zscript. So I thought I should share it with you guys in case anyone needs it.

 

mapgrid.png

 

One of the few times that Excel was useful to me.  :P


Edited by Twilight Knight, 06 December 2020 - 11:21 AM.

  • Demonlink and Aevin like this

#2 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 31 December 2014 - 11:01 AM

Oooh, very handy. Me Like!


  • Twilight Knight likes this

#3 David

David

    Fallen leaves... adorn my night.

  • Administrators
  • Real Name:David
  • Pronouns:He / Him

Posted 31 December 2014 - 02:52 PM

This is actually really useful. Thanks for making that, this makes scripting screen and map related stuff easier! :)


  • Twilight Knight likes this

#4 Russ

Russ

    Caelan, the Encouraging

  • Administrators
  • Location:Washington

Posted 31 December 2014 - 04:26 PM

Ooh, this is very handy. Thanks! Just so you all know, since it's a related topic, there is a way to convert hex to decimal in ZC. If you're working with warps and such, just type in "0x*screen number in hex*", for example, "0x5D", and ZScript will handle the rest. You can't do this for the argument for a FFC or item script though, so this grid will still come in handy for those situations.
  • Twilight Knight and Aevin like this

#5 Twilight Knight

Twilight Knight

    Tell all with glee, Argon's on PureZC

  • Members
  • Real Name:Sven
  • Location:Rotterdam, NL

Posted 31 December 2014 - 09:02 PM

Yes that's exactly what I'm using it for Russ, FFC "tile"warps.



#6 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 31 December 2014 - 09:03 PM

You've got to me kidding me Russ. 0x7F is screen 7F. Holy crap, that's going to make making scripted screen thingies so much easier.


Edited by Freya, 31 December 2014 - 09:03 PM.


#7 Moosh

Moosh

    The Mush

  • Moderators

Posted 31 December 2014 - 09:41 PM

I don't like having to convert stuff from hex to decimal in order to use a script, so I prefer to use two arguments (column and row) for the screen number like this:

Screen->SetSideWarp(0, ScreenC+ScreenR*16, DMap, WT_IWARPBLACKOUT);

It makes it a little easier to set up warps and if you have some basic knowledge of ZScript you can tweak older scripts to work the same way.


  • Mero likes this

#8 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 31 December 2014 - 09:50 PM

That's actually a interesting resolution of the hexidecimal problem Moosh. In fact I recall doing something similar with a combo changing thing from the game boy games. You know the things in the fire dungeons that turned lava to stone.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users