+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Would this work? (/thread-8231.html)
I want to make a Wake Up intro to this map, and the Wake Up I found in the forums is not what I want. I copied and pasted this from the 25_cells_tunnels.hps file, and I wonder if this is what I need to be able to do a Wake Up.
.hps
Spoiler below!
void TimerBlackOut(string &in asTimer)
{
AddLocalVarInt("BlackoutStep", 1); //What step to play in the event
float fEventSpeed = 0.5f; //The default time between steps in an event
Except maybe edit it to what I need? I also don't want it to play Alexander's voice at the end, so can I just remove that? Please tell me what I can delete, what not to delete, even make edit the script, and make everything I need to change a "ChangeThis" (with quotes, because It will obviously be in the void)
First of all, you have to start that with a timer:
AddTimer("anything", 0.0f, "TimerBlackOut");
Then you can edit anything between case x: and break;
You can also reduce the amount of cases by just removing them.
using fEventSpeed = x; you can change the speed at which the next case comes.
(05-25-2011, 06:31 AM)Khyrpa Wrote: First of all, you have to start that with a timer:
AddTimer("anything", 0.0f, "TimerBlackOut");
Then you can edit anything between case x: and break;
You can also reduce the amount of cases by just removing them.
using fEventSpeed = x; you can change the speed at which the next case comes.
Okay. I want it to be the exact same speed as it is in the main game, so I wouldn't change the fEventSpeed. Thanks
Also, what would I put in the "anything" slot? Just, anything?
(05-25-2011, 02:49 PM)XxRoCkBaNdMaNxX Wrote: Okay. I want it to be the exact same speed as it is in the main game, so I wouldn't change the fEventSpeed. Thanks
Also, what would I put in the "anything" slot? Just, anything?
What is the for(int i=1;i<=7;++i)
First the "anything" is just any name you wanna give the timer (any name will do...). You may need it for example when you use: RemoveTimer(string& asName);
The for(int i=1;i<=7;++i) means that it puts 7 lines of those voices after another like this: (it saves space)
Code:
AddEffectVoice("CH03L25_Alexander_01, "", "Voice", "CH03L25_Alexander_01, false, "", 0.0f, 0.0f);
AddEffectVoice("CH03L25_Alexander_02, "", "Voice", "CH03L25_Alexander_02, false, "", 0.0f, 0.0f);
AddEffectVoice("CH03L25_Alexander_03, "", "Voice", "CH03L25_Alexander_03, false, "", 0.0f, 0.0f);... and so on
(05-25-2011, 02:49 PM)XxRoCkBaNdMaNxX Wrote: Okay. I want it to be the exact same speed as it is in the main game, so I wouldn't change the fEventSpeed. Thanks
Also, what would I put in the "anything" slot? Just, anything?
What is the for(int i=1;i<=7;++i)
First the "anything" is just any name you wanna give the timer (any name will do...). You may need it for example when you use: RemoveTimer(string& asName);
The for(int i=1;i<=7;++i) means that it puts 7 lines of those voices after another like this: (it saves space)
Code:
AddEffectVoice("CH03L25_Alexander_01, "", "Voice", "CH03L25_Alexander_01, false, "", 0.0f, 0.0f);
AddEffectVoice("CH03L25_Alexander_02, "", "Voice", "CH03L25_Alexander_02, false, "", 0.0f, 0.0f);
AddEffectVoice("CH03L25_Alexander_03, "", "Voice", "CH03L25_Alexander_03, false, "", 0.0f, 0.0f);... and so on
Why would he have no life for asking for help in a forum?
Why isn't he allowed to ask questions, anyhow? No one is forcing you to read or reply - just move on if you are too lazy to help a fellow man out.
Canceling or not, that is your decision entirely but I suggest you keep working for a little longer - your scripting abilities will never improve if you never practice
(05-25-2011, 05:02 PM)Roenlond Wrote: Canceling or not, that is your decision entirely but I suggest you keep working for a little longer - your scripting abilities will never improve if you never practice
Yeah, but Amnesia crashing my PC entirely is a big problem, and it's starting to worry me. I even got a Blue Screen from it this morning. I don't think I will cancel it, but it is a possibility.