Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Help Please: Tricksters Time System

Okay I love this script it is so easy to use and I feel stupid for having to ask this but.... can anyone please help me and tell me how to make it so that when you enter the inside it changes the tone?

This would be much appreciated.

EDIT: Thanks so Much for the help Trickster
 
Ok that is handled by the Day/Night Addon that should be in the script demo

As you see in the setup script for it
Code:
  #--------------------------------------------------------------------------
  # * Tone Disabled Maps
  #   - syntax map_id => disabled flag true: disabled false: enabled
  #--------------------------------------------------------------------------
  Tone_Disabled = {2 => true}
  #--------------------------------------------------------------------------
  # * Tone Disabled Maps Default
  #--------------------------------------------------------------------------
  Tone_Disabled.default = false

Specifically this
Code:
Tone_Disabled = {[B]2[/B] => [B]true[/B]}

now the first bolded value, the 2, is the map_id and the second bolded value, true, is the value. Set the value to true to disable the tone otherwise set it to false to enable toning

On a side note this
Code:
  Tone_Disabled.default = false
sets the default for the whole hash, so whatever you don't include in that hash it will return false, so if you didn't define it it will enable toning on that map

That should cover it sorry if you didn't get what I said just reply back and I'll explain it again

And thank you for using my script :)
 
Thank you. For the most part I got it and it is working.

One more thing that would help is how to set multiple maps inside. I've tried a few ways of it but could not get it to work. So whenever you have time if you could please explain how.

No thank you for making it it was exactly what I needed.
 
Ooops forgot about this

Just add more key => value pairs to the hash Like so

The pairs in the hash are separated by a comma

so to add more to it we do this

{2 => true, 3 => false, 4 => true, 5 => false}
 
Oh okay thats the one way I didn't try. Sorry bout being so persistant on getting it, it's just my game has a lot to do with time so i wanted to get it working

Thanks.

Okay sorry about all the questions but I have one more for anyone to solve. Is there a way to have the day, month and year show up?

Like if your character looks at a calender then it would tell the date.
I am still pretty new to this and have tried to do it in scripting and events but couldn't find a way to do it.

NEW QUESTION:
I feel bad for having so many questions and keep making you come back but I got lost on that last part. Okay so I added
Code:
Call Script: $game_variables[id] = 
($game_time.full_time)
To output the code. Now how is it that I make that outputed number appear on the screen?

I have been fooling around with variables to get it but would only get a syntax error or nothing at all.
 
Use the Call Script Event Command

Code:
$game_variables[id] = (something here)

replace (something here) with

$game_time.time to output the time => 12:00 AM
$game_time.full_time to output everything 12:00 AM Monday, Janurary 1, 2000
$game_time.current_month to output the current month
$game_time.current_day to output the current_day
Also there is
$game_time.(time)

where (time) is either minute, hour, day, month, year to get that value

and then you can print it in a message event command

Also there was no need to bump I merged your posts (since it was a valid doublepost) just remember that for next time
 
and then you can print it in a message event command

You then put \V[Id] in a show message event command

(Also it would have been better to just post again instead of editing and then bumping after 3 days)
 
Okay I have been trying to se this system to have stores close and open on certain days at certain times, but I can't seem to get it to work.

I have been using comment command: start_hour and end_hour

But it still won't work so any help on that would be fantastic Thanks.
 
Oh wow sorry bout all the bump I took another look and figured out that the problem was I forgot to put an s on the end on 'day'.

It's fine I understand except I don't have exams for a month :P
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top