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


Thread Rating:
  • 3 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My problems
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#31
RE: My problems

Okay thanks Big Grin
10-18-2012, 08:51 PM
Website Find
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#32
RE: My problems

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);
10-19-2012, 12:07 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#33
RE: My problems

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"

Trying is the first step to success.
10-19-2012, 12:48 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#34
RE: My problems

(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);

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-19-2012, 12:50 PM
Find
Robby Offline
Posting Freak

Posts: 2,549
Threads: 38
Joined: Jun 2009
Reputation: 47
#35
RE: My problems

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.

Infrequently active. Don't expect an immediate response. Best to contact me at a different locale. If I create a thread, expect me to be quite active.
10-19-2012, 12:52 PM
Website Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#36
RE: My problems

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

Trying is the first step to success.
10-19-2012, 12:56 PM
Find
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#37
RE: My problems

(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 :|
10-19-2012, 12:56 PM
Website Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#38
RE: My problems

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.

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
(This post was last modified: 10-19-2012, 01:06 PM by The chaser.)
10-19-2012, 12:57 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#39
RE: My problems

(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

Trying is the first step to success.
(This post was last modified: 10-19-2012, 01:18 PM by FlawlessHappiness.)
10-19-2012, 01:18 PM
Find
The chaser Offline
Posting Freak

Posts: 2,486
Threads: 76
Joined: Jun 2012
Reputation: 113
#40
RE: My problems

(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

THE OTHERWORLD (WIP)
[Image: k6vbdhu]

Aculy iz dolan.
10-19-2012, 01:26 PM
Find




Users browsing this thread: 1 Guest(s)