| 10-19-2004, 05:58 AM | #1 |
Deos anyone have or know how to make a Multiplayer friendly Add attribute system? (every level you get 3 points to raise str/agi/int with) One perferebly that isn't in JASS because I can't read it ^-^;; |
| 10-19-2004, 06:14 AM | #2 |
I'd just add a spellbook-based ability with three dummy abilities in it to the leveling hero, then have a trigger for each that adds to the appropriate stat and removes the ability once all points have been spent. You could use the custom value of the hero to store the remaining points. |
| 10-19-2004, 07:21 AM | #3 |
weeraadears - i can never spell his name off hand, but you get the idea - back pack has an attributer, spell book and backpack system... its multiplayer compatable. you could use wood as currency for attributes like in a bunch of other maps you could replace the entire hero attribute system aswell. use leaderboads? |
| 10-19-2004, 07:15 PM | #4 |
I forgot to add that it also needs to be save-able. I don't know if that would change any of your ideas but I thought I should say it anyway. |
| 10-19-2004, 09:08 PM | #5 | |
Quote:
|
| 10-20-2004, 01:13 AM | #6 |
or you could deticate a part of the save code to the storage of remaining distrobution points etc. |
| 10-21-2004, 05:51 PM | #7 |
Ok that helps some. I devoted the lumber to attribute points like you said, and i have a save code that saves the recources and would save the attributes your hero has. Now i just need some ideas. How should I do it? with dialogue buttons or an ability or what? ive tryed making a spellbook type ability that has 3 abilities in it, Strength, Agility and Inteligence. But when i click on one they all start their cooldown like they where all used at the same time, and it gives a point to every attribute and takes 3 points away from lumber. I hat triggers for A unit starts casting an ability: ability being cast is equal to strength: add +1 strength to casting unit, set player property (current lumber of owner of casting unit) - 1. i had that for each ability, and it all works cuz the points are distributed. Only thing is when i click one, they all activate :\ |
| 10-21-2004, 05:56 PM | #8 |
you could just have a shop that sells tomes for wood.. |
| 10-21-2004, 06:48 PM | #9 |
Rydia, If all three "attribute enhancement" dummy abilities have the same base spell, then you might get behaviour like what you're talking about. I'm not sure if you knew this or not. If you do, ignore the rest. The base spell is the spell that you pick when you're creating the actual spell. If a hero has more than one ability based off the same spell, then they will all fire when any one of them fires. To solve this problem, you would need to base your attribute enhancement dummy abilities off of different spells. |
| 10-22-2004, 12:45 PM | #10 |
you want to change one stat by one? well i did a spell called combat mastery for barbarian give him a dummy skill (passive) like evasion set to 0% all Events > Unit - Generic Unit Event Unit - A unit Learns a skill Conditions > Hero Skill Comparison Learned Hero Skill Equal to Combat Mastery (fake) Actions > Hero - Modify Hero Attribute Hero - Modify Strength of Triggering unit : Add/Subtract # Hero - Modify Intelligence of Triggering unit : Add/Subtract # Hero - Modify Agility of Triggering unit : Add/Subtract # and yes it's permanent =) hope this helps =.= there is a leak though i think, if you use tome of retraining =P but my map does not sell that yet... i'll think up a new one soon... |
