How to detect a finished Easter Egg on BO2 Origins?
-
I'm trying to make a plugin that pays players once the easter egg is completed. I've got it mostly finished but i am unsure of how to detect when the EE is done.
I thought maybe:
easterEggComplete() { self endon("disconnect"); level endon("end_game"); path = "bank/" + self getGuid() + ".txt"; if (fileExists(path)) { level waittill("ee_complete") player.pers["bank"] = int(player.pers["bank"]) + 250000; player updateBankValue(player.pers["bank"]); player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE"); } }Would work. I think im using waittill on the wrong dvar, or maybe that dvar doesn't even exist?
Any help would be great.
-
I'm trying to make a plugin that pays players once the easter egg is completed. I've got it mostly finished but i am unsure of how to detect when the EE is done.
I thought maybe:
easterEggComplete() { self endon("disconnect"); level endon("end_game"); path = "bank/" + self getGuid() + ".txt"; if (fileExists(path)) { level waittill("ee_complete") player.pers["bank"] = int(player.pers["bank"]) + 250000; player updateBankValue(player.pers["bank"]); player tell("^2$^7" + valueToString(250000) + " deposited for finishing EE"); } }Would work. I think im using waittill on the wrong dvar, or maybe that dvar doesn't even exist?
Any help would be great.
level waittill( "tomb_sidequest_complete" );That should suffice for if you want the reward to be given once the souls step is done.
-
undefined iHarrow referenced this topic on
-
level waittill( "tomb_sidequest_complete" );That should suffice for if you want the reward to be given once the souls step is done.
Hadi77KSA oh my god. thank you so much.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login