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
Custom Story Script Problems
zergling50 Offline
Member

Posts: 74
Threads: 9
Joined: Jul 2012
Reputation: 1
#28
RE: Custom Story Script Problems

(07-15-2012, 09:23 PM)Your Computer Wrote:
(07-15-2012, 09:15 PM)zergling50 Wrote: What should those values be changed to?

PHP Code: (Select All)
void KeyOnDoor(string &in asItemstring &in asEntity)
{
SetSwingDoorLocked(asEntityfalsetrue);
PlaySoundAtEntity("""unlock_door"asEntity0false);
RemoveItem(asItem);


Notice how the variable names reflect the parameters exactly.

Also, if your MAP is named 01.map, then the HPS should be named 01.hps. If nothing from the script works after making these changes, then check if C:\Users\<username>\AppData\Local\VirtualStore contains any of your custom story files. If so, then you're bound to have consistency issues with your custom story.

I made the changes you showed and then went to check out VirtualStore. This is what I found.
-VirtualStore
--Program Files
---ASCII (figured this had nothing to do with Amnesia)
--Program Files (x86)
---Bethesda Softworks
---E.M. Free Game Capture
---EA GAMES
---iWisoft Flash SWF to Video Converter
--Windows
---(Bunch (4 to be exact) of configuration settings files that I doubt have anything to do with my custom story along with an empty folder with a name that is a bunch of letters and numbers)

Seeing nothing that seemed to have anything to do with my custom story I tried it out and it still wouldnt work sadly... Im sorry for all the trouble.
Heres my current code:
////////////////////////////
// Run when starting map
void OnStart()
{
AddUseItemCallback("", "key_1", "castle_1", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("key_1", "ActivateMonster", true);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
}
////////////////////////////
// Run when leaving map
void OnLeave()
{

}
void ActivateMonster(string &in asItem)
{
SetEntityActive("servant_grunt_1", true);
AddEnemyPatrolNode("servant_grunt_1", "PathNodeArea_2", 0, "Idle");
}
void KeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("asEntity", false, true);
PlaySoundAtEntity("", "unlock_door", "asEntity", 0, false);
RemoveItem("asItem");
}
07-15-2012, 10:02 PM
Find


Messages In This Thread
Custom Story Script Problems - by zergling50 - 07-14-2012, 08:25 PM
RE: Custom Story Script Problems - by JMFStorm - 07-14-2012, 08:29 PM
RE: Custom Story Script Problems - by zergling50 - 07-14-2012, 08:34 PM
RE: Custom Story Script Problems - by zergling50 - 07-14-2012, 10:13 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 01:01 AM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 06:26 AM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 09:15 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 10:02 PM
RE: Custom Story Script Problems - by zergling50 - 07-16-2012, 02:11 AM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 04:43 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 04:58 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 05:38 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 06:40 PM
RE: Custom Story Script Problems - by Ongka - 07-15-2012, 06:36 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 06:47 PM
RE: Custom Story Script Problems - by Ongka - 07-15-2012, 06:44 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 08:55 PM
RE: Custom Story Script Problems - by zergling50 - 07-15-2012, 10:13 PM
RE: Custom Story Script Problems - by zergling50 - 07-16-2012, 04:51 PM
RE: Custom Story Script Problems - by zergling50 - 07-16-2012, 07:18 PM



Users browsing this thread: 1 Guest(s)