I've fleshed out some of my own custom xp/gold system for OnDeath, but I would like to make custom drops as well. Specifically a drop system where I hand select the items that certain creatures drop.
I can't think of a way to check in an if statement -IF- the creature killed, is in fact "THIS_TAG"
Trying to make it so -IF- (OBJECT_SELF) == "THIS_TAG" THEN
There will be other checks in there, of course.
Maybe switches will work?? I have yet to look into those.
So one more time.
I really have no idea what I'm doing. lol. I know my scripts are inefficient and messy, but a lot of them work for what I need. :-)
EXAMPLE:
int nRare = Random(65) + 1;
//oCreatureKilled is the OBJECT this OnDeath script is attached to.
if (oCreatureKilled == "THIS_TAG" && nRare == 64 && whateverelse == TRUE)
GiveThisAwsomeShinyWeapon; //or maybe spawn in as loot on the corpse?
}





Retour en haut






