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
Need help, again :P
ZodiaC Offline
Member

Posts: 120
Threads: 8
Joined: Oct 2012
Reputation: 2
#5
RE: Need help, again :P

(10-25-2012, 04:27 PM)The chaser Wrote: You've put "player" instead of "Player". "Player" is always this way, never forget it.
And, by the lever, you could do this:

if (alState==1) //When lever is used
{
if(GetLocalVarInt("Var_coals")==3)//////This is a counter. Every coal should add 1 to it. This represents that there's a missing coal.
{
///Stuff like saying there isn't enough coal.
}
if(GetLocalVarInt("Var_coals")==4)//If the number of coals is 4, of course
{
//Create particles, sounds and stuff.
SetLocalVarInt("Var_coals", 0);///This will put the coals variable to 0, and it will make the lever unuseful another time. +, the coals couldn't collapse another time with the area, so the variable would be this way forever.
}

Hope that helped. Smile
Wait a Sec!How did you know that there is 3 coals inside already???(if(GetLocalVarInt("Var_coals")==3))
I would prefer instead of (if(GetLocalVarInt("Var_coals")==3)//////This is a counter. Every coal
should add 1 to it. This represents that there's a missing coal.
{
///Stuff like saying there isn't enough coal.
}
if(GetLocalVarInt("Var_coals")==4)//If the number of coals is 4, of course
{
//Create particles, sounds and stuff.
SetLocalVarInt("Var_coals",
0);///This will put the coals variable to 0, and it will make the lever
unuseful another time. +, the coals couldn't collapse another time with
the area, so the variable would be this way forever.
}
)
Something like that:

if(GetLocalVarInt("Var_coals")<3)//////This is a counter. Every coal
should add 1 to it. This represents that there's a missing coal.

{
///Stuff like saying there isn't enough coal.
}
else if(GetLocalVarInt("Var_coals")==4) //If the number of coals is 4, of course

{
SetLeverInteractionDisablesStuck(string& asName, bool abX);//Make the appropriate changes
//Create particles, sounds and stuff.
}
else
{
//Type a message saying that there is too many coals
}

I prefer this way but correct me if I'm wrong or my way isn't good enough

[Image: 2H1Mc.jpg]
10-25-2012, 06:48 PM
Find


Messages In This Thread
Need help, again :P - by Zaapeer - 10-25-2012, 03:08 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 03:12 PM
RE: Need help, again :P - by Zaapeer - 10-25-2012, 03:29 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 04:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 06:48 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 08:23 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 08:51 PM
RE: Need help, again :P - by The chaser - 10-25-2012, 09:27 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 10:17 PM
RE: Need help, again :P - by FlawlessHappiness - 10-25-2012, 10:49 PM
RE: Need help, again :P - by ZodiaC - 10-25-2012, 11:21 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 06:44 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 07:01 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 09:45 AM
RE: Need help, again :P - by FlawlessHappiness - 10-26-2012, 10:59 AM
RE: Need help, again :P - by Melvin - 10-26-2012, 11:13 AM
RE: Need help, again :P - by The chaser - 10-26-2012, 11:25 AM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 01:25 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 02:00 PM
RE: Need help, again :P - by ZodiaC - 10-26-2012, 02:32 PM
RE: Need help, again :P - by The chaser - 10-26-2012, 04:41 PM
RE: Need help, again :P - by Zaapeer - 10-27-2012, 12:17 AM
RE: Need help, again :P - by The chaser - 10-27-2012, 08:24 PM



Users browsing this thread: 1 Guest(s)