Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to block the hints?
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#1
How to block the hints?

So you know those hints which when you pick up a tinder box it will show you a hint about it, and when you're in darkness it will show you a hint about it! Yeah, you know what I'm talkin about.

So I made a voice intro and I gave the player 3 tinderboxes already as a beginning but the tinderboxes hint appears in the voice acting scene and I don't want that, I know what the code to block hints

PHP Code: (Select All)
BlockHint("PickTinderbox"); 

But the problem is, what's the name of the hint I wanna block? How the heck should I know?

I don't know where I can find the names of the hints to block them! anybody knows? pls?

(This post was last modified: 05-03-2014, 03:17 PM by Radical Batz.)
05-03-2014, 03:15 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#2
RE: How to block the hints?

Take a look in the english.lang in the config folder. You'll find it there. Or perhaps base_english.lang, but I think it's the first one.

Edit: It looks like what you put should be the correct one.

base_english.lang has this:
<Entry Name="PickTinderbox">Tinderboxes are used to light candles and other light sources in the enviroment. The current amount of Tinderboxes is shown in Inventory ($ButInventory).</Entry>

(This post was last modified: 05-03-2014, 03:28 PM by Mudbill.)
05-03-2014, 03:26 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#3
RE: How to block the hints?

(05-03-2014, 03:26 PM)Mudbill Wrote: Take a look in the english.lang in the config folder. You'll find it there. Or perhaps base_english.lang, but I think it's the first one.

Edit: It looks like what you put should be the correct one.

base_english.lang has this:
<Entry Name="PickTinderbox">Tinderboxes are used to light candles and other light sources in the enviroment. The current amount of Tinderboxes is shown in Inventory ($ButInventory).</Entry>

I tried to make this
PHP Code: (Select All)
BlockHint("PickTinderbox"); 

but didn't work :/

05-03-2014, 03:37 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: How to block the hints?

Did you try RemoveHint("PickTinderbox"); maybe?

05-03-2014, 05:25 PM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#5
RE: How to block the hints?

(05-03-2014, 05:25 PM)Mudbill Wrote: Did you try RemoveHint("PickTinderbox"); maybe?

I did that too after I removed the block hint and did that instead, but still nothing! :/

(This post was last modified: 05-03-2014, 05:39 PM by Radical Batz.)
05-03-2014, 05:39 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#6
RE: How to block the hints?

Here is my example from Premonition.
Spoiler below!

PHP Code: (Select All)
void OnStart()
{
BlockHint("DarknessDecrease");
BlockHint("EntityGrab");
BlockHint("EntityLever");
BlockHint("EntityPush");
BlockHint("EntitySlide");
BlockHint("EntitySwingDoor");
BlockHint("EntityWheel");
BlockHint("PickLantern");
BlockHint("PickOil");
BlockHint("PickTinderbox");
BlockHint("QuestAdded");
BlockHint("RecentlyReadText");
BlockHint("SanityHit");
BlockHint("SanityLow");
BlockHint("Hints");    
BlockHint("EnemySeen");


---
How does it work and where do i get the functions from?
Here is how it works;
The HINTS are placed in the base_english.lang
Here is where the hints are starting:
( for me ) somewhere at line 538.
PHP Code: (Select All)
</CATEGORY>
  <
CATEGORY Name="Hints">
    <
Entry Name="SanityAdd">As you make progress or pick up important itemsyou'll recover some lost sanity.</Entry>
Etcetera,etcetera... 
---
Extra information;
IF you want the hints to appear again at... another map for example, Easely do this ( example )
PHP Code: (Select All)
UnBlockHint("DarknessDecrease");
UnBlockHint("EntityGrab");
UnBlockHint("EntityLever");
UnBlockHint("EntityPush");
UnBlockHint("EntitySlide");
Etcetera,etcetera...
HintWhat i didjust put those (UnBlockHintsinto voidOnLeave() so the hint(sshow(edup in the next map
(This post was last modified: 05-03-2014, 06:38 PM by DnALANGE.)
05-03-2014, 06:24 PM
Find
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#7
RE: How to block the hints?

Yes, but that didn't work apparently, unless the BlockHint() was not in OnStart()...

Discord: Romulator#0001
[Image: 3f6f01a904.png]
05-04-2014, 02:02 AM
Find
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#8
RE: How to block the hints?

(05-04-2014, 02:02 AM)Romulator Wrote: Yes, but that didn't work apparently, unless the BlockHint() was not in OnStart()...

I put it Onstart

05-04-2014, 10:43 AM
Find




Users browsing this thread: 1 Guest(s)