MadNuttah Posted January 26, 2011 Share Posted January 26, 2011 Hello, does someone know where set new vars for challenges? I.e.: You've sold 100 apples or planted 100 apple trees and then get xp for that? I'm able to count how many apples are eaten by vanilla methods, but I need a way to count non-vanilla stuff. There's not much documentation for challenges at bethsoft, so I hope you specialists can help me out as you've done so often in the past. Thanks. Link to comment Share on other sites More sharing options...
Stonedturtle26 Posted January 27, 2011 Share Posted January 27, 2011 (edited) I'm no expert, and I'm not really sure if this will help. I opened up the GECK just for you to see if I could help a bit. More or less I'll just be pointing you the right direction. Under "Actor Data" there is a category "Challenges". This is where I believe all the challenges information is stored except for the rewards and challenge perks. Really just right click and edit to view how some of the challenges are set up, they actually seem pretty easy. Unfortunately I believe you are limited to the types that they provide, but I think with some clever thinking you can workaround these restrictions. An Example for You've sold 100 apples. First create some random item that has no use and no function.You would set up a challenge that uses the "acquire an Item" type to detect when the player acquires the item you just created.Then you would set up a global variable called applesEaten. You would then make a script within the apple item, that adds 1 to applesEaten every time an item is sold. Then you would create a script that uses the begin gamemode, I believe this is the one that runs every frame, that compares applesEaten to 100. If applesEaten equals 100, have the script add the item you just created to the player's inventory. After that happens then, theoretically, the challenge would be complete. If you decide to do something similar to this, I would just be sure in the reward script to include some kind of check so that a player couldn't then just drop and pick up the item you created to get extra experience points. Now again, I'm not an expert and I'm not really sure of the limitations in GECK, but I hope I helped some. Edited January 27, 2011 by Stonedturtle26 Link to comment Share on other sites More sharing options...
MadNuttah Posted January 27, 2011 Author Share Posted January 27, 2011 Thanks for your response, I think testing won't hurt. :) Link to comment Share on other sites More sharing options...
Recommended Posts