All right here is my problem, in rare moments, the ACS_Executewithresult does'nt work for some reason or gives me a wrong answer. Any Ideas?
Code: Select all
//...
Cast_Cure:
TNT1 A 1 A_Jumpif(ACS_ExecuteWithResult(700,3) == 0,"NoMana")
TNT1 A 0 A_Jumpif(ACS_ExecuteWithResult(720,1,1,1) == 0,"NoLevelSpr")
//...
Code: Select all
//Arg 1: Level Function
//(1 = Check the required level to cast)
//(2 = Give Experience)
//Arg 2: Needed Level
//Arg 3: Level-Experience type
//(0 = Inteligence)
//(1 = Spirit)
Script 720 (Int Fun, Int NeedLV, Int LvXpType)
{
Int Cast;
Int ActualExp = CheckInventory(XpTypes[LvXpType]);
Int LVInt = Checkinventory(LvTypes[LvXpType]);
If (Fun == 1)
{
if(LVInt < NeedLV)
{
Cast = 0;
//Print(d:Cast);
SetResultValue(Cast);
}
if(LVInt > NeedLV || LVInt == NeedLV)
{
Cast = 1;
//Print(d:Cast);
SetResultValue(Cast);
}
}