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
#5
RE: Custom Story Script Problems

(07-14-2012, 09:18 PM)Your Computer Wrote: ActivateMonster was not properly closed, and it's string not String.
How do I properly close it? And what about the key code?
EDIT: OH My bad! just noticed what you meant. Thanks! ill test it and see if it works. Still not sure what to do about the key code though.

(07-14-2012, 10:13 PM)zergling50 Wrote:
(07-14-2012, 09:18 PM)Your Computer Wrote: ActivateMonster was not properly closed, and it's string not String.
How do I properly close it? And what about the key code?
EDIT: OH My bad! just noticed what you meant. Thanks! ill test it and see if it works. Still not sure what to do about the key code though.
I tested it after I properly closed it and made string lower case, but it still wont work. any other ideas? The Grunt still wont even spawn.

I just realized I put AddEnemyPatrolMode instead of AddEnemyPatrolNode, yet sadly this does nothing to change the problem. Current Code:
////////////////////////////
// Run when starting map
void OnStart()
{
AddUseItemCallback("OpenDoor", "key", "castle_1", "KeyOnDoor", true);
SetEntityPlayerInteractCallback("key", "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(entity, false);
PlaySoundAtEntity("", "unlock_door", entity, 0, false);
RemoveItem(item);
}
(This post was last modified: 07-14-2012, 10:36 PM by zergling50.)
07-14-2012, 10:13 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)