Jump to content
Sign in to follow this  
^_^

Variable-Based Strings

Recommended Posts

Basically, I have managed to create a common event-based day and time system. Basically, I used variables like timeDay, timeMonth, etc. etc. so when:

if timeDay >= 30, then timeMonth += 1

Something like that... I'm just wondering what will happen if I want to show what month it currently is during a message? Like, obviously, these variables store integers-----but month names like "January" is a string. And if I use normal conditional branches, it would be too long...

 

Are there an plugins out there that when used in a message, it outputs "January" when timeMonth == 1, "February" when timeMonth == 2, etc. etc.

I'm thinking of using a switch or using enum? But I don't really know where I'll start or what to do to make something like that works...

 

Thanks~~

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted