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
Script "Names"? (Combine callbacks and such)
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#1
Script "Names"? (Combine callbacks and such)

Can anyone tell me what the first function of these two scripts are?

AddCombineCallback(string& asName, string& asItemA, string& asItemB, string& asFunction, bool abAutoDestroy);

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

string& asName <--- I don't know what that is

In the description of the script it says 'Internal Name'

I don't know what it's used for though Huh

Please help

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
09-01-2011, 12:10 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#2
RE: Script "Names"? (Combine callbacks and such)

Its just the name the game recognizes it by I think. You can put anything in it.
09-01-2011, 12:12 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#3
RE: Script "Names"? (Combine callbacks and such)

(09-01-2011, 12:12 PM)Rapture Wrote: Its just the name the game recognizes it by I think. You can put anything in it.

Do you have to use these ""

And what does the 3rd one for GiveItem do?

string& asSubTypeName

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
09-01-2011, 12:19 PM
Find
Juby Away
Senior Member

Posts: 290
Threads: 2
Joined: May 2011
Reputation: 5
#4
RE: Script "Names"? (Combine callbacks and such)

(09-01-2011, 12:19 PM)Lolnesia09 Wrote:
(09-01-2011, 12:12 PM)Rapture Wrote: Its just the name the game recognizes it by I think. You can put anything in it.

Do you have to use these ""

And what does the 3rd one for GiveItem do?

string& asSubTypeName

asSubTypeName is defined within the model editor If I remember correctly.

Insanity. Static.
(This post was last modified: 09-01-2011, 12:39 PM by Juby.)
09-01-2011, 12:38 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#5
RE: Script "Names"? (Combine callbacks and such)

(09-01-2011, 12:19 PM)Lolnesia09 Wrote:
(09-01-2011, 12:12 PM)Rapture Wrote: Its just the name the game recognizes it by I think. You can put anything in it.

Do you have to use these ""

And what does the 3rd one for GiveItem do?

string& asSubTypeName
Yes put them in ""

Says its the name of the item in your .lang file. If you know how to do that.

09-01-2011, 12:39 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#6
RE: Script "Names"? (Combine callbacks and such)

(09-01-2011, 12:39 PM)Rapture Wrote:
(09-01-2011, 12:19 PM)Lolnesia09 Wrote:
(09-01-2011, 12:12 PM)Rapture Wrote: Its just the name the game recognizes it by I think. You can put anything in it.

Do you have to use these ""

And what does the 3rd one for GiveItem do?

string& asSubTypeName
Yes put them in ""

Says its the name of the item in your .lang file. If you know how to do that.

Ahh.

So when I put

"ItemName_SoandSo" That line will judge what I put in the SoandSo space?

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
09-01-2011, 12:43 PM
Find
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#7
RE: Script "Names"? (Combine callbacks and such)

Ya I'm sure, I haven't used that function yet. But try it out.
09-01-2011, 01:05 PM
Find
ObsidianLegion Offline
Member

Posts: 173
Threads: 53
Joined: Jun 2011
Reputation: 0
#8
RE: Script "Names"? (Combine callbacks and such)

(09-01-2011, 01:05 PM)Rapture Wrote: Ya I'm sure, I haven't used that function yet. But try it out.

Oh right. I am.

And when you have your Timer function like

void Soandso(string& asEntity)
{
AddTimer("Timer", 3, "TimeBoom");
}

void TimeBoom(string& asTimer)
{
What goes in these brackets happens when the timer ends?
}

"Good men mean well; they just don't always end up doing well." -Isaac Clarke, Dead Space 2, Chapter 12
(This post was last modified: 09-01-2011, 01:14 PM by ObsidianLegion.)
09-01-2011, 01:14 PM
Find




Users browsing this thread: 1 Guest(s)