RE: extra_english now is working, but I need help with a different script :)
(05-27-2011, 11:22 PM)Khyrpa Wrote:
(05-27-2011, 10:59 PM)XxRoCkBaNdMaNxX Wrote: What would the function to make Daniel roll to look like he is laying, then to get back up? (I think its like FadePlayerRollTo(X Axis,Y axis, Z axis) or something). But what would be the Numbers for the X, Y, and Z axis?? (For the laying on the ground like sleeping, and the default.)
Well you would just have to tweak and test and tweak these:
MovePlayerHeadPos(float afX, float afY, float afZ, float afSpeed, float afSlowDownDist);
if you want your head close to the ground change float afY to -1 or something.
then there is this what youre mainly after I guess:
FadePlayerRollTo(float afX, float afSpeedMul, float afMaxSpeed);
change float afX to -45 or 45 and your view is turned 45 degrees
I'm sorry. I haven't got around to trying this again.
Turns out, he script I had before was what I needed. I just didn't have it set for long enough. I will make it longer and try again.
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
RE: extra_english now is working, but I need help with a different script :)
Everything else isn't boring. I can think up 10 unique ideas right now that have never been used in a custom story yet and have the potential to become something enjoyable.
RE: extra_english now is working, but I need help with a different script :)
(07-20-2011, 06:25 PM)Kyle Wrote: Everything else isn't boring. I can think up 10 unique ideas right now that have never been used in a custom story yet and have the potential to become something enjoyable.
Hm... I just got a great idea xD It may take a lot of scripting, but it sounds cool.
Using a bomb to blow up the door.
Can I get some scripting for it to explode, for it to "blow up" the door, and yeah. For blowing it up, I think I would know how to script it.
I would
Spoiler below!
just deactivate the door that you blow up right when the explosion goes off, and activate a different door that would be like broken and laying on the floor in the room, on its side, and yeah.
I want this. Help me please <?
I would also need to know how I would make the bomb? (Like the Storage, its in a glass jar, but I would need like certain things to make it, like (for instance) acid, blood, and poison.)
I also need help with a key script. I'm pretty sure I have done everything right, but it's not working. It says (when I use the key on the door) that Cannot Use Item This Way, and the name and the description are both blank.
void wakeUp () {
StartPlayerLookAt("servant_grunt_1", 11.0f, 11.0f, "");
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 16.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are a man named Gary Johnson. You are having personal problems, such as depression, for an unknown reason. Your wife goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandond road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something wacks you on the head. You wake in a cell and the story begins.
</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_AwesomeKey">Key #476</Entry>
<Entry Name="ItemDesc_AwesomeKey">Key for a door that has the numbers #476...</Entry>
<Entry Name="ItemName_CellKey">Cell #801</Entry>
<Entry Name="ItemDesc_CellKey">On the side there are words scratched in. They said "Cell #801.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">
Escape Hell Beta[br]
Made By: XxRoCkBaNdMaNxX[br]
Thanks to: XxWestKillzXx for the help with scripts
Following People with scripting: Roenlond, Mofo, Kyle, Greven.
Frictional Games for this awesome piece of work
Everyone in the community for playing.[br]
</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="level_dungeon_1">Water Works</Entry>
<Entry Name="level_dungeon_2">Outer Cells</Entry>
</CATEGORY>
</LANGUAGE>
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 07-20-2011, 09:56 PM by RawkBandMan.)
This can be used on the door. Simply add a prop health of a negative value and then it gets damaged. Or you could replace doors and use this:
StartEffectFlash(1, 1, 2);
Which you could change the numbers a bit by using the script functions page.
No I have not. So I could have just an explosion, and then have it for when it explodes, put the health -1, so then it would get destroyed?
But how would I make the explosion? I would know how I would make the bomb itself with the mixture, but I don't know of a explosion particle. Is there one?
Sorry If I am annoying you guys to hell
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 07-20-2011, 09:54 PM by RawkBandMan.)
RE: extra_english now is working, but I need help with a different script :)
Actually, as I last remember, doors have the health of 100. So -100 would work. The explosion particle is not exactly needed when you have a StartEffectFlash, but it is possible to test it in the level editor by placing a particle system in there.
RE: extra_english now is working, but I need help with a different script :)
(07-20-2011, 10:02 PM)Kyle Wrote: Actually, as I last remember, doors have the health of 100. So -100 would work. The explosion particle is not exactly needed when you have a StartEffectFlash, but it is possible to test it in the level editor by placing a particle system in there.
The script function page is your friend.
Okay, so that function fades the screen to white. Is there an explosion sound I could play when it fades to white?
EDIT: Never Mind found one! Now I just need to script it and check it.
What would I place the volume for it?
But I still havent figured out my key problem!
I'm pretty sure I have done everything right, but it's not working. It says (when I use the key on the door) that Cannot Use Item This Way, and the name and the description are both blank.
void wakeUp () {
StartPlayerLookAt("servant_grunt_1", 11.0f, 11.0f, "");
FadeOut(0); // Instantly fades the screen out. (Good for starting the game)
FadeIn(10); // Amount of seconds the fade in takes
FadeImageTrailTo(2, 2);
FadeSepiaColorTo(100, 4);
SetPlayerActive(false);
FadePlayerRollTo(50, 220, 220); // "Tilts" the players head
FadeRadialBlurTo(0.15, 2);
SetPlayerCrouching(true); // Simulates being on the ground
AddTimer("trig1", 16.0f, "beginStory"); // Change '11.0f' to however long you want the 'unconciousness' to last
}
<LANGUAGE>
<CATEGORY Name="CustomStoryMain">
<Entry Name="Description">You are a man named Gary Johnson. You are having personal problems, such as depression, for an unknown reason. Your wife goes on a trip to somewhere in the desert, and she dies along the way. She gives you most the things in her will, including a strange artifact she found in the desert. You keep it, and strange things start happening. Such as voices telling you to "Throw it away," or "Give it to me." You ignore them, and keep living, or trying to. You are then taking a nice stroll down an abandond road when you hear something in the bushes. You get weak from fear and fall to the floor. The world goes dark and something wacks you on the head. You wake in a cell and the story begins.
</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_AwesomeKey">Key #476</Entry>
<Entry Name="ItemDesc_AwesomeKey">Key for a door that has the numbers #476...</Entry>
<Entry Name="ItemName_CellKey">Cell #801</Entry>
<Entry Name="ItemDesc_CellKey">On the side there are words scratched in. They said "Cell #801.</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="StartCredits">
Escape Hell Beta[br]
Made By: XxRoCkBaNdMaNxX[br]
Thanks to: XxWestKillzXx for the help with scripts
Following People with scripting: Roenlond, Mofo, Kyle, Greven.
Frictional Games for this awesome piece of work
Everyone in the community for playing.[br]
</Entry>
</CATEGORY>
<CATEGORY Name="Levels">
<Entry Name="level_dungeon_1">Water Works</Entry>
<Entry Name="level_dungeon_2">Outer Cells</Entry>
</CATEGORY>
</LANGUAGE>
I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 07-20-2011, 10:22 PM by RawkBandMan.)