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
Some complicated stuff!
Mackiiboy Offline
Member

Posts: 101
Threads: 7
Joined: Jan 2012
Reputation: 11
#2
RE: Some complicated stuff!

1) The best think I can come up with is using local variables. Then you will just use AddLocalVarInt every time you use your crowbar, and when the variable has reached the desired amount, the crowbar will break.

Here I'll show you one way to put up a function that checks if you have used your crowbar three times:

void CrowbarCheck()
{
if(GetLocalVarInt("CrowbarVar") != 3) return;
//Crowbar breaks
}
If using this, you will just have to make a function that add 1 to CrowbarVar every time you use the crowbar, as the same time as it calls the CrowbarCheck function.
.
(07-29-2012, 08:55 PM)shadowZgamerZ Wrote: 1) - I want to make crowbar to broke after it ha been used on 3 doors. If you understand! I am going to make that you can use crowbar on any doors you want in my CS! But I want it to break after it has been used 3 times no matter on which doors it has been used! Example: there is about 9 locked, jammed doors and you can use crowbar on all of them (some doors lead to dead end places, some to resources (like oil, tinderboxes and such), some to real story paths and so on... Can this be done?
.
------------------------------------------------------------------------------
2) I'm not sure what you are looking for, maybe you could elaborate it a bit?
You can modify the players' health and sanity by using functions.

void SetPlayerSanity(float afSanity);
void AddPlayerSanity(float afSanity);
float GetPlayerSanity();

Modifies/returns the sanity of the player.

void SetPlayerHealth(float afHealth);
void AddPlayerHealth(float afHealth);
float GetPlayerHealth();

Modifies/returns the health of the player.
.
Quote:2)- Is it possible to disable player for to regain its energy/health? It
would be awesome feature to my CS and to some others too. It mostly to
make game more scarier and harder. So... the only way to regain healt is
to use Landanum thing or Painkillers (in my story)! Its impossible to
regain health in such small period of time. If this cannot be done, can
this: can you reduce amount of health player get through time or time
for player to regain its energy/health!
.
-------------------------------------------------
3) Yet, I'm not sure since I've never experimented with the flashlight. I do not think it's possible to switch between lantern and flashlight when it comes to the graphics in the inventory. Maybe between different maps, but that is more than I dare to say since I have no idea. I'll leave this problem to YC or someone who knows.
.
Quote:3) - Is it possible to have lantern and flashlight from WhiteNight in
one custom story! Not at same time because I know that it is almost
impossible unless major changes are made! I mean like this: you pick up
lantern, at some point in area, in my CS, in earthquake, lantern broke,
deleted lantern via script, deleted all oil, and oil potiions from
imventory (so batteries can be used and show status how much energy in
flashlight is left instead of oil, no GUI changes), and then later in
game you pick up flashlight! Do you understand what I mean!
.
(This post was last modified: 07-29-2012, 10:24 PM by Mackiiboy.)
07-29-2012, 10:00 PM
Website Find


Messages In This Thread
Some complicated stuff! - by shadowZgamerZ - 07-29-2012, 08:55 PM
RE: Some complicated stuff! - by Mackiiboy - 07-29-2012, 10:00 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-29-2012, 10:11 PM
RE: Some complicated stuff! - by Mackiiboy - 07-29-2012, 10:13 PM
RE: Some complicated stuff! - by Mackiiboy - 07-29-2012, 10:35 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-29-2012, 10:20 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-29-2012, 10:49 PM
RE: Some complicated stuff! - by Mackiiboy - 07-29-2012, 11:00 PM
RE: Some complicated stuff! - by SilentStriker - 07-29-2012, 11:30 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-30-2012, 05:28 AM
RE: Some complicated stuff! - by SilentStriker - 07-30-2012, 11:48 AM
RE: Some complicated stuff! - by shadowZgamerZ - 07-30-2012, 12:00 PM
RE: Some complicated stuff! - by SilentStriker - 07-30-2012, 01:43 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-30-2012, 02:01 PM
RE: Some complicated stuff! - by Your Computer - 07-30-2012, 02:25 PM
RE: Some complicated stuff! - by SilentStriker - 07-30-2012, 02:28 PM
RE: Some complicated stuff! - by shadowZgamerZ - 07-30-2012, 04:35 PM
RE: Some complicated stuff! - by SilentStriker - 07-30-2012, 07:23 PM



Users browsing this thread: 1 Guest(s)