Hello,
I am attempting to write a script that will allow me to set a local integer on a container that will represent the number of d6 to be rolled. The result of this xd6 roll will then be the amount of gold spawned into the container.
Unfortunately, my meager scripting knowledge has left me to come up with this:
void main()
{
int iDiceNum = GetLocalInt(OBJECT_SELF, "iDiceNum");
int iDiceNum + d6;
CreateItemOnObject("it_gold001", OBJECT_SELF,);
}
Which is obviously both incomplete and non-functional.
Can anyone point me in the right direction?
-NineCoronas