Frictional Games Forum (read-only)
My problems - Printable Version

+- 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 - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: My problems (/thread-18769.html)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


RE: My problems - naseem142 - 10-18-2012

Okay thanks Big Grin


RE: My problems - naseem142 - 10-19-2012

I have no idea how to do this function , please help me. please.
ಠ_ಠ


My key's name: Key_0


Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);


RE: My problems - FlawlessHappiness - 10-19-2012

void GiveItem("Key_0", "Puzzle", "Key_0", "key_tomb.tga", 1)

I just wrote key_tomb, but it could be any of the other keys.

The "asType" is always "Puzzle"


RE: My problems - The chaser - 10-19-2012

(10-19-2012, 12:07 PM)naseem142 Wrote: I have no idea how to do this function , please help me. please.
ಠ_ಠ


My key's name: Key_0


Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);
void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1);


RE: My problems - Robby - 10-19-2012

I don't think that's the way you write a script like that.

It should be something like:
void FuncName(string &in asParent, string &in asChild, int alState) -in the case of a script zone.
{
GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , 1);
}

Do you have an entity named "Key_0.ent"? If not, it won't work.


RE: My problems - FlawlessHappiness - 10-19-2012

He just didn't get the function Wink I don't know why asType is puzzle either..


RE: My problems - naseem142 - 10-19-2012

(10-19-2012, 12:50 PM)The chaser Wrote:
(10-19-2012, 12:07 PM)naseem142 Wrote: I have no idea how to do this function , please help me. please.
ಠ_ಠ


My key's name: Key_0


Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);
void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1);
Error , ) expected :|


RE: My problems - The chaser - 10-19-2012

Ok, then something like this:
{
GiveItem("stone_hammer_chipper", "Puzzle", "stone_hammer_chipper", "stone_hammer_chipper.tga", 0);
}

This is from the wiki, it gives you a hammer-chipper. Change it to the name of your key and everything should work fine. Don't touch the Puzzle part. Just the "stone_hammer_chipper". And the image.


RE: My problems - FlawlessHappiness - 10-19-2012

(10-19-2012, 12:56 PM)naseem142 Wrote:
(10-19-2012, 12:50 PM)The chaser Wrote:
(10-19-2012, 12:07 PM)naseem142 Wrote: I have no idea how to do this function , please help me. please.
ಠ_ಠ


My key's name: Key_0


Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);
void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1);
Error , ) expected :|
Yea, you do not write "float" in a function Wink and Key_0 needs these "". The middle Key_0 should be "Puzzle" though


RE: My problems - The chaser - 10-19-2012

(10-19-2012, 01:18 PM)beecake Wrote:
(10-19-2012, 12:56 PM)naseem142 Wrote:
(10-19-2012, 12:50 PM)The chaser Wrote:
(10-19-2012, 12:07 PM)naseem142 Wrote: I have no idea how to do this function , please help me. please.
ಠ_ಠ


My key's name: Key_0


Original: void GiveItem(string& asName, string& asType, string& asSubTypeName, string& asImageName, float afAmount);

Mine: void GiveItem(Key_0, Key_0 , Key_0 , chemical_container_full.tga , float 1);
void GiveItem("Key_0", "Key_0.ent" , Key_0 , chemical_container_full.tga , float 1);
Error , ) expected :|
Yea, you do not write "float" in a function Wink and Key_0 needs these "". The middle Key_0 should be "Puzzle" though
Didn't see that. Thanks, beecake Big Grin