34 lines
999 B
Plaintext
34 lines
999 B
Plaintext
/****************************************************
|
|
Starting Condition Script : Confirm Selection
|
|
ats_sc_confirm_s
|
|
|
|
Last Updated: August 25, 2002
|
|
|
|
***Ambrosia Tradeskill System***
|
|
Created by Mojo(Allen Sun)
|
|
|
|
This script is responsible for filling the custom
|
|
tokens after a selection has been made to make
|
|
sure this was the correct selection.
|
|
****************************************************/
|
|
#include "ats_inc_common"
|
|
#include "ats_const_common"
|
|
#include "ats_const_mat"
|
|
#include "ats_inc_material"
|
|
#include "ats_inc_cr_get"
|
|
#include "ats_inc_menu"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPlayer = GetPCSpeaker();
|
|
int iCraftMaterial = ATS_GetCurrentCraftMaterial(oPlayer);
|
|
string sCraftTag = ATS_GetCurrentCraftTag(oPlayer);
|
|
|
|
string sMaterialName = ATS_CapitalizeString(ATS_GetMaterialName(iCraftMaterial));
|
|
string sCraftName = ATS_GetCraftName(sCraftTag);
|
|
|
|
SetCustomToken(55041, sMaterialName);
|
|
SetCustomToken(55042, sCraftName);
|
|
return TRUE;
|
|
}
|