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
Please help
Its just the name the game recognizes it by I think. You can put anything in it.
(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)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.
(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)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?
Ya I'm sure, I haven't used that function yet. But try it out.
(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?
}