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
Death Hints & Normal Hints
MrDosht Offline
Junior Member

Posts: 43
Threads: 8
Joined: Oct 2012
Reputation: 0
#1
Death Hints & Normal Hints

Hi, just wondering how to make a hint appear at the death screen, pretty much just changing it from "you have to carry on" to something a little less monotonous. And also, how to make a hint appear, not the kind of hint that is shown under the red HINT heading at the top of the game screen, but something like "run you idiot" to appear in the middle of the screen, and also so that it appears when a timer ends and an entity appears... Does anyone know how to do this? I looked it up in the engine scripts but have no idea what to do with the script... D:

"Computers follow your orders not your intentions"- Anon
11-04-2012, 04:17 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: Death Hints & Normal Hints

void SetDeathHint(string& asTextCategory, string& asTextEntry);
Sets the message that appears when the player dies.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.

Trying is the first step to success.
(This post was last modified: 11-04-2012, 04:36 PM by FlawlessHappiness.)
11-04-2012, 04:36 PM
Find
MrDosht Offline
Junior Member

Posts: 43
Threads: 8
Joined: Oct 2012
Reputation: 0
#3
RE: Death Hints & Normal Hints

(11-04-2012, 04:36 PM)beecake Wrote: void SetDeathHint(string& asTextCategory, string& asTextEntry);
Sets the message that appears when the player dies.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file

void SetMessage(string& asTextCategory, string& asTextEntry, float afTime);
Displays a message on the screen.
asTextCategory - the category in the .lang file
asTextEntry - the entry in the .lang file
afTime - determines how long the message is displayed. If time is < =0 then the life time is calculated based on string length.


Oh, thanks, I'm just wondering how to actually make the message appear when a timer ends, how do I set when the message comes up? And also, where should I put that script in my .hps file, do i put it in the same places as the function that is carried out when the timer ends or somewhere else? And also, where should I put the deathhint one? But thanks for telling me the actual script! Big Grin

EDIT: -_- Epic noob mistake for the normal hint, just had to put it in the function! Sorry, So thanks for helping out with that one. Still confused on the deathhint one though.

"Computers follow your orders not your intentions"- Anon
(This post was last modified: 11-04-2012, 04:47 PM by MrDosht.)
11-04-2012, 04:43 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: Death Hints & Normal Hints

Deathhints are a category in the .lang file. Search on this forum and you should be able to find tutorial.s

Trying is the first step to success.
11-04-2012, 04:48 PM
Find




Users browsing this thread: 1 Guest(s)