Eliteofdelete
Member
What is the best way to look at what is going on with values in code? For example, say I write something like this...
To find out what the int value of the CreateDrinks, I will print it out doing something like this....
Is there a more efficient way at looking at these values when I run the script?
Code:
int CreateDrinks(string drinkchecking, string resource){
item d = to_item(drinkchecking);
item r = to_item(resource); //little paper umbrella or magical ice cubes or coconut shell
int amount;
if (item_amount(r) > 0)
amount = creatable_amount(d);
return amount;
}
To find out what the int value of the CreateDrinks, I will print it out doing something like this....
Code:
int x;
x = CreateDrinks("mae west","coconut shell");
print("" + x + "");
Is there a more efficient way at looking at these values when I run the script?