Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Noob needs help
Karai16 Offline
Member

Posts: 164
Threads: 24
Joined: Apr 2011
Reputation: 0
#6
RE: Noob needs help

(05-01-2011, 01:50 AM)Kyle Wrote:
(05-01-2011, 01:42 AM)Karai16 Wrote: I do have a question though. I tried using the code you're telling him to use, but it isn't working with me.

Did you plug it all in?

If you used the first script, does the script area match the one you are using for you custom story? Did you replace "Monster" with the name of the monster in you custom story? If yes to both, is the monster in your custom story set to unactive?

If you used the second script, does "Item" have the same name as the name of the item you are using in your custom story? Did you replace "Monster" with the name of the monster in you custom story? If yes to both, is the monster in your custom story set to unactive?

yes I did... you see this is my code, if you see anything wrong with it please tell me:

void OnStart()
{
    AddUseItemCallback("", "RoomKey", "RoomDoor", "UsedKeyOnDoor", true);
    SetPlayerInteractCallback("RoomKey", "Activatebob", true);
}

void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("RoomDoor", false, true);
    PlaySoundAtEntity("", "unlock_door", "RoomDoor", 0, false);
    RemoveItem("RoomKey");
}

void Activatebob(string &in asEntity)
{
setEntityActive("Bob", true);
}
and yes, I'm sure I named my servant Bob. Also, to help, I'll give you the error it's giving me.
[Image: Error.png]

Custom stories:
Her Games (100% Complete)
Her Games, All Bugs Fixed (100% Complete)
05-01-2011, 12:09 PM
Find


Messages In This Thread
Noob needs help - by X4anco - 04-30-2011, 12:48 PM
RE: Noob needs help - by Kyle - 04-30-2011, 12:56 PM
RE: Noob needs help - by Karai16 - 05-01-2011, 01:42 AM
RE: Noob needs help - by Kyle - 05-01-2011, 01:50 AM
RE: Noob needs help - by Karai16 - 05-01-2011, 12:09 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:14 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:16 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:20 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:29 PM
RE: Noob needs help - by X4anco - 04-30-2011, 01:00 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:29 PM
RE: Noob needs help - by Kyle - 05-01-2011, 03:31 PM
RE: Noob needs help - by HumiliatioN - 05-01-2011, 03:34 PM
RE: Noob needs help - by MrBigzy - 05-01-2011, 03:41 PM
RE: Noob needs help - by Kyle - 05-01-2011, 04:24 PM



Users browsing this thread: 1 Guest(s)