| 03-08-2005, 09:02 PM | #1 |
A basic sell tower system forces you to go through each tower individually and change it's point value, so i was wondering if anyone knows of an easier way? A way to figure out how much gold was spent on each tower and give that gold back if the player wishes to sell the tower? Maybe totalling gold spent when it is built and then when it's upgraded? Is there even a way to find gold spent on a building? I don't know, any help to this often tedious point value problem would be greatly obliged. |
| 03-08-2005, 09:31 PM | #2 |
First, your thread name wasnt too appealing. Answer to your question: First you have to make a variable. Make it an interger Variable. Then make a trigger. Event- Player Upgrades building(dont know if thats a event, but i think i have seen it before. Im at school right now) Conditions- Ability being upgraded = to XXX Events- Set Variable- Add +XXX gold (however much it costs) to variable. And do it again for each upgrade. So when you want to sell it, the total of the variable will give the player that amount of gold. |
| 03-08-2005, 09:48 PM | #3 | |
Quote:
I know how to do it like that... im not an idiot... I want to know a way to do it where it isnt tedious and i dont have to put in the gold amount each time. Im not a noob. |
| 03-08-2005, 10:22 PM | #4 |
Well your probably going to have to get more specific then because without specifics no one can really help you, it would also help if you gave us what you had already. As for this specific question, I seriously doubt there is an easier way then what he gave you. Could be wrong but not even that one is that hard all you have to do is copy and paste it then change the values, pretty simple if ya ask me :) Latez, ~Valdez |
| 03-08-2005, 10:58 PM | #5 | |
Quote:
I dont really need help, i know how to do it, but i was just wodnering if there was an easier, less tedious way of doing it! |
| 03-08-2005, 11:24 PM | #6 | |
Quote:
I didn't say you where a noob, you assumed I did. If you don't want my help then ignore my post....... I also think you shouldn't have flared off at me or Valdez, we where just trying to help. I got the impression that you got mad at me, correct me if I'm wrong. ~Azhag~ |
| 03-08-2005, 11:49 PM | #7 | |
Quote:
it's just bothersome when people assume i dont know things. :P |
| 03-09-2005, 12:08 AM | #8 |
But you can't go around assume people assume that man. I have nothing against you, and your probably a better map maker then I am. If I have offended you in anyway, I apologize now. Sorry. |
| 03-09-2005, 12:08 AM | #9 |
Guest | i uped all of your reputations! (i dont know why..) hey! have a nice day! |
| 03-09-2005, 12:18 AM | #10 |
Skwee if you read second part of my post (doesn't seem like it) I said that with the plain WE for W3 there is probably not an easier way to do it. With another map editing tool like WEU or using Jass Triggers I have no idea, but I still doubt it. Anyways good luck w/ whatever ur doing. Latez, ~Valdez |
| 03-09-2005, 02:46 AM | #11 |
Is it possible to use Custom Values for them? For instance: A unit finishes construction Unit-type of structure being built equal to (this tower type) Then Set (Structure being built) custom value to (amount of gold that specific tower costs) and then have a trigger that when it is upgraded it adds to the custom value for that unit. finally, when a unit casts spell "sell this tower," give gold equal to custom value of casting unit. I don't know if this is any easier, or if custom values carries over to buildings being upgraded. I just know that custom values are very helpful, because then you don't need to make a lot fo variables. Sorry if I'm dumb. I've never made a TD before. |
| 03-09-2005, 03:18 AM | #12 |
I looked through my common.j (v 1.14 it's old) for some way to reference gold, but I didn't find anything, maybe they have added it since 1.18. as you go through each tower you have to set gold cost anyway, so why do you want a way to deal with custom point values?. The only other way to do it would be to automate it with a program or script (which wouldn't have any good way of determining what each tower should cost), which could also just set the custom value. |
| 03-09-2005, 03:57 AM | #13 | |
Quote:
while innately better than unit point value imo, you still have to end up writing in all the values for the if blocks |
| 03-09-2005, 12:33 PM | #14 |
well if you look in the spells catagory of the download section... both vexorian and darky28 had made tower sell spells that work inately of the towers selling price. also you can use the "unsummon" ability (to my knowledge) either use it, or set up a dummy unit and ability and make a dummy unit cast the spell on your building when i uses the dummy spell |
| 03-09-2005, 07:51 PM | #15 | |
Quote:
oh, duh, thaks logik. here's some rep :P |
