Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Shelf | Store

Privacy Policy


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script "Names"? (Combine callbacks and such)
Author Message
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #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

09-01-2011 12:10 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Senior Member

Posts: 721
Joined: May 2011
Reputation: 18
Post: #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 all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #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

09-01-2011 12:19 PM
Find all posts by this user Quote this message in a reply
Juby Away
Senior Member

Posts: 285
Joined: May 2011
Reputation: 5
Post: #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.

Forever passing judgement compared to a fraud.
(This post was last modified: 09-01-2011 12:39 PM by Juby.)
09-01-2011 12:38 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Senior Member

Posts: 721
Joined: May 2011
Reputation: 18
Post: #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 all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #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?

09-01-2011 12:43 PM
Find all posts by this user Quote this message in a reply
Rapture Offline
Senior Member

Posts: 721
Joined: May 2011
Reputation: 18
Post: #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 all posts by this user Quote this message in a reply
JackoIsDeath Offline
Member

Posts: 171
Joined: Jun 2011
Reputation: 0
Post: #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?
}

(This post was last modified: 09-01-2011 01:14 PM by JackoIsDeath.)
09-01-2011 01:14 PM
Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: