Create a free account to remove all ad content.

Author Topic:  Sanity in TMF DD scripts  (Read 2158 times)

0 Members and 1 Guest are viewing this topic.

Rev Elevenclaw

  • Sr. Member
  • *
  • Posts: 372
    • View Profile
  • Xbox: Rev Elevenclaw
Sanity in TMF DD scripts
« on: January 29, 2016, 02:43:23 AM »
You may have heard about it. You may have seen it for yourself. Now you can have it. I invite anyone interested to come to my map and view the sanity scripts. Or be patient as I post a script a day. It's a minimum 13 script system, so it will take a bit, obviously. My computer is a smart phone, so I don't want to do it all at once.
« Last Edit: February 01, 2016, 06:38:23 AM by Rev Elevenclaw »
Focus determines reality...

Rev Elevenclaw

  • Sr. Member
  • *
  • Posts: 372
    • View Profile
  • Xbox: Rev Elevenclaw
Re: Sanity in TMF DD scripts
« Reply #1 on: January 29, 2016, 06:33:26 AM »
All scripts are labeled with; sanity\

Sanity HUD bar (one line)
sanity\sanity
HUDBar [sanity] [player] [History:sanity] [100] [1020,684,250,24] [150,150,64,35] [label|numbers]

sanity\insanity

If
   HasHistory [sanity] [player] [>] [ 0]
   Intersect [sphere] [prel:0,1,0] [5] [mobs]
Then
   History [sanity] [player] [-1]
   Wait [1000]
Endif
Loop [1000]
   
sanity\nightterror
This script is set to an upper world zone that starts at the top, and reaches depth 130. You will need to set a cancel script for exit zone command.

If
   HasHistory [sanity] [player] [>] [ 0]
   IsNightTime [true]
Then
   History [sanity] [player] [-1]
   Wait [10000]
Endif
   Loop [1000]

sanity\comfort

If
   HasHistory [sanity] [<] [100]
   IsBlockLit [prel:0,0,0] [sun|block] [true]
Then
   History [sanity] [player]
   Wait [5000]
Endif
Loop [1000]

sanity\miner
This script is set to a under world zone that starts at 131 and reaches the bottom. You will need to set a cancel script for exit zone command.

If
   HasHistory [sanity] [player] [>] [ 0]
Then
   History [sanity] [player] [-1]
   Wait[5000]
Endif
   Loop [1000]

sanity\sangaintorch

If
   HasHistory [sanity] [player] [<] [100]
   IsEquipped [Torch] [true]
Then
   History [sanity] [player]
Endif
Loop [3000]

sanity\sangainplayers

If
   HasHistory [sanity] [player] [<] [100]
   Intersect [sphere] [prel:0,1,0] [10] [player]
Then
   History [sanity] [player] [+5]
Endif
Loop [1000]

This next one is for if you have a need to instantly fill the insanity bar. As in a potion script or npc options.

sanity\fill

History [sanity] [player] [100]

As for effects, well I have four that run as the sanity bar drops, running IsRandom scripts. They are currently at 75, 50, 25, 0, but plan on going to 80, 60,40, etc.. They automatically activate and deactivate. Check back...
« Last Edit: February 25, 2016, 10:36:21 PM by Rev Elevenclaw »
Focus determines reality...

crazytater94

  • Supreme Member
  • *
  • Posts: 2649
  • Mastering TM since 2011
    • View Profile
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
Re: Sanity in TMF DD scripts
« Reply #2 on: January 29, 2016, 01:30:10 PM »
I've had a sanity bar since the first week of HUD bars. I don't know if my version is what you would want, but what I did is check if the block under you is lit, and if so, you gain sanity, and if not, you lose sanity. I also have your screen tint black depending on your sanity level.

Dryym

  • Supreme Member
  • *
  • Posts: 4336
  • What's yours is mine. ~TM's Resident Master Thief~
    • View Profile
  • Xbox: dryym
Re: Sanity in TMF DD scripts
« Reply #3 on: January 29, 2016, 01:37:19 PM »
I would make sanity for my survival engine, It would be really easy too, I just can't think of anything semi realistic to make it do.

If only I could make the player hallucinate things.

Creator of the term "Deathmine "
Jared [19|Oct 07:12 PM]: "It changes everything" Dryym

crazytater94

  • Supreme Member
  • *
  • Posts: 2649
  • Mastering TM since 2011
    • View Profile
  • Xbox: crazytater94
  • PSN: crazytater94 (Inactive)
  • Steam: crazytater94
Re: Sanity in TMF DD scripts
« Reply #4 on: January 29, 2016, 04:27:29 PM »
What about a flowing gradient of black, gray, and light gray screen tints using transitions and have mobs spawning and immediately despawning right in front of them using spawnMob and MobState. You could also probably have a set decal script to flash each block by the player turning to blood and then switch them back to normal.

Lunar

  • Elite Member
  • *
  • Posts: 995
  • The God of the Galaxy
    • View Profile
  • Xbox: Qvzw
  • PSN: Widumn_Boise
Re: Sanity in TMF DD scripts
« Reply #5 on: January 29, 2016, 05:55:42 PM »
This all sounds soooo cool :3

Rev Elevenclaw

  • Sr. Member
  • *
  • Posts: 372
    • View Profile
  • Xbox: Rev Elevenclaw
Re: Sanity in TMF DD scripts
« Reply #6 on: January 29, 2016, 08:23:02 PM »
Yes all very good. Keep in mind this is for DD, so it's limited by DD parameters.
Focus determines reality...

Dark Hydrak

  • Elite Member
  • *
  • Posts: 508
    • View Profile
Re: Sanity in TMF DD scripts
« Reply #7 on: January 29, 2016, 08:39:50 PM »
Sanity, the feeling that we all lack XD

I`ve never made a Sanity script but, I would make it when it gets too low, it would run a CCTV script at a pixel art to make the feeling as though you are hallucinating.

Rev Elevenclaw

  • Sr. Member
  • *
  • Posts: 372
    • View Profile
  • Xbox: Rev Elevenclaw
Re: Sanity in TMF DD scripts
« Reply #8 on: January 29, 2016, 10:16:30 PM »
I've had a sanity bar since the first week of HUD bars. I don't know if my version is what you would want, but what I did is check if the block under you is lit, and if so, you gain sanity, and if not, you lose sanity. I also have your screen tint black depending on your sanity level.

I tried that. IsBlock 'lit' didn't seem to support [prel:x,x,x] in any way I tried.

...have mobs spawning and immediately despawning right in front of them using spawnMob and MobState. You could also probably have a set decal script to flash each block by the player turning to blood and then switch them back to normal.

DD doesn't support mob spawn unfortunately. Great idea tho! And I dig the second idea, but have no clue how I could pull that off. Maybe zone related.

...CCTV script at a pixel art to make the feeling as though you are hallucinating.

I have a cctv script that gives the player a close up of Diablos face that runs for [300].
Focus determines reality...

Rev Elevenclaw

  • Sr. Member
  • *
  • Posts: 372
    • View Profile
  • Xbox: Rev Elevenclaw
Re: Sanity in TMF DD scripts
« Reply #9 on: January 30, 2016, 10:03:38 AM »
...
« Last Edit: January 31, 2016, 09:04:27 AM by Rev Elevenclaw »
Focus determines reality...