| 08-01-2002, 08:45 AM | #1 |
Guest | How would I make a quest that updates it self and then sets to victory when a player builds buldings. EX. Player 1 has to build a tower and a farm..when player builds a tower..the leader board is updated...turning the Tower lable a diff color upon completion..after all is built...quest complete... Any Ideas? |
| 08-01-2002, 01:46 PM | #2 |
Guest | This is an easy one. You really should make a test map and try these things out. First off, create a subfolder for each quest / subquest. Then at map initialization (event) set it to create a quest named (whatever) and with description (whatever). You can also set the icons that appear in the "Quest" window to be whatever you want - for that you need the list of icons which I don't have in front of me but it's not too hard to find around try that Dom guy's site, I think he has them. Then don't forget to add a "Set Variable = (last created quest)" where the variable is one for your quest name (like FarmQuest or BuildingQuest). You'll refer to this later on. If you want you can set the quest to be hidden from the player until the player performs a certain action. Then you just set quest (variable) = discovered when the appropriate action is taken to discover it. Then one easy way to do it is to create a couple more variables...so say you want the player to build a Town Hall and three Farms. Create two more variables called TownHall and FarmNumber. You just set the Event - Player (x) completes building of type (Town Hall) and then say TownHall = TownHall + 1. Then you say Event - Player (x) completes building type (farm) action set FarmNumber = FarmNumber + 1. Then you set a trigger that says Event - TownHall becomes equal to 1 condition FarmNumber is equal to 3 or something along those lines (you may have to set it to check every 1-2 seconds of game time for these variables, I'm not sure - would have to test it...because there's the possibility that you complete the town hall and NOT the farms or vice versa and it never checks it again - OR you could set BOTH triggers just in case and that would work (i.e. set TownHall is complete = 1 condition farms = 3 --or--- set farmnumber = 3 condition townhall = 1) OR WHATEVER - and whenever that condition is met you set the Quest variable (BuildingQuest) = complete and then maybe once that quest is complete that's the victory condition (that would be a separate trigger). Hope that helps. |
| 08-01-2002, 04:48 PM | #3 |
Guest | What type a variable for TownHall do I need to make? Also how do I set the event for player (x) blah blah? |
| 08-01-2002, 05:00 PM | #4 |
Guest | QuestRequirement, probably, if you want both the townhall and the farm. I haven't played around too much yet with quests that have multiple requirements, so try that. The +1 thing is kind of a cop-out because I haven't played with it yet. If you're just going for the +1 thing and not doing the QuestRequirement type of variable then it's just a simple integer. |
| 08-01-2002, 05:03 PM | #5 |
Guest | How do i set the event to detect if the player finishes a building? |
| 08-01-2002, 05:26 PM | #6 |
Guest | If you do some fooling around which is what I just did you should be able to figure some of this out on your own... Try this though: First off, make a variable called TownHallUnit - it will be a "Unit Type" variable, and then in map init somewhere make it equal to "Human Barracks" Event - Time - Periodic Event every 2 seconds of game time Condition - Unit Comparison - click on Triggering Unit and make it Event Response - Constructed Structure - Equals - TownHallUnit variable then say Action - Quest Complete or whatever. EDIT - you can also set an action to only enable this trigger after the quest for which it applies has been discovered. |
| 08-01-2002, 05:50 PM | #7 |
Guest | One more question..how do I make a leader board were it will display the building name..and upon buidling that building will turn a diff color..thanks |
| 08-01-2002, 05:51 PM | #8 |
Guest | There are tons of other threads and resources on the web that explain how to create and configure leaderboards. |
| 08-01-2002, 05:58 PM | #9 |
Guest | were might i find them at? The problem with most of the help resources they deal with Leaderboards that use numbers...I need on that deals with numbers and just letters.. EX. When the player destroyes a bulding...a lable on the leaderboard that says town hall..turns grey...and when a player builds a farm..it counts down from 4 untill the last one is done then it turns grey..somthing like that |
| 08-01-2002, 06:27 PM | #10 |
Guest |
| 08-02-2002, 05:51 AM | #11 |
Guest | still confused about this.... The problem with most of the help resources they deal with Leaderboards that use numbers...I need on that deals with numbers and just letters.. EX. When the player destroyes a bulding...a lable on the leaderboard that says town hall..turns grey...and when a player builds a farm..it counts down from 4 untill the last one is done then it turns grey..somthing like that |
| 08-02-2002, 06:38 AM | #12 | |
Guest | Quote:
it wont let me select the TownHallUnit as a variable as long as the variable is set to unit-type |
