Frictional Games Forum (read-only)
Script "Names"? (Combine callbacks and such) - 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: Script "Names"? (Combine callbacks and such) (/thread-10097.html)



Script "Names"? (Combine callbacks and such) - ObsidianLegion - 09-01-2011

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


RE: Script "Names"? (Combine callbacks and such) - Rapture - 09-01-2011

Its just the name the game recognizes it by I think. You can put anything in it.


RE: Script "Names"? (Combine callbacks and such) - ObsidianLegion - 09-01-2011

(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



RE: Script "Names"? (Combine callbacks and such) - Juby - 09-01-2011

(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.


RE: Script "Names"? (Combine callbacks and such) - Rapture - 09-01-2011

(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.




RE: Script "Names"? (Combine callbacks and such) - ObsidianLegion - 09-01-2011

(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?



RE: Script "Names"? (Combine callbacks and such) - Rapture - 09-01-2011

Ya I'm sure, I haven't used that function yet. But try it out.


RE: Script "Names"? (Combine callbacks and such) - ObsidianLegion - 09-01-2011

(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?
}