New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing item attributes [$100] #998
Comments
Yes! Please. It would be so awesome to see how to add this into TFS 1.0 Because I need to do the same thing with items and with vocations. I would love to see this get done! I also strongly believe that this will do the same thing as adding the cast system like znote was talking about, both of those added to this server and I can see MANY new developers switching distributions. Only thing that would be keeping people back from switching would be the doItemGetAttribute and doItemSetAttribute functions :D |
They should be categorized to avoid this long name. <attribute type="reflection" element="fire" value="n"/> or <attrgroup type="reflection">
<attribute type="fire" value = "n"/>
<attribute type="ice" value = "m"/>
</attrgroup> and the element should be customizable in other xml <element type="fire" effect="n" condition="x"/>
<element type="music" effect="other"/><!--custom--> So we can make custom absorb, reflection, etc |
Could be added attributes to handle health/mana too: increaseHealthValue |
@Nu77 That attributes are already in the engine:
|
@marksamman I have a code that I bought from Gesior, I could release it if he dosen't mind aswell. |
@WibbenZ Yeah, visual studio has some problems when there are too many ifs / else ifs. |
The above attributes on post 1 are quite irrelevant since we can manipulate them already in LUA trough creaturescripts. What we can't do in LUA is change the container slot amount. |
Correct but note the "manipulate" word. |
@Crypton33, (Znote - can't tag him) and @marksamman This is what I did last night, looks cleaner to me atleast.
It will take up more space, but as I said (to me) it looks alot cleaner compared to this:
Still need to rewrite / add the other things you wrote about.
|
@marksamman Do you have any guidelines which should be followed to help a developer create an acceptable pull request for this issue? |
I'm not sure what the best way would be to implement this, and PR's with new features will have to wait until after the 1.2 release anyway. I'd rather see community effort around issues in the 1.2 milestone as the release is already long overdue. |
I wrote these attributes/features for WibbenZ. @marksamman // gesior at work |
@JSkalskiSBG you could split the cases into several functions inside the cpp file - they will be inlined anyway. |
is the problem with switch cases still occuring in 2017 and newer versions of visual studio? |
from otland#998, for more details, refer to the PR otland#2807 itself (cherry picked from commit a14f1fb)
Missing Item Attributes
Hello,
There are some attributes that have been implemented in TFS 0.4, but that aren't added in 1.0.
Attribute list
Increasing power of melee / magic / healing:
Reflect system - something like absorb system, but the attacker gets some of the damage back:
For every reflect type:
Extra attributes for absorbing player / monster damage, could be useful for creating tank items:
Also it should be possible to set those attributes by using item:setAttribute(...)
Bounty
Unfortunately I'm kinda busy, so I won't have time to work on it.
Fortunately Znote gave idea for using Bountysource, so I'm setting $65 bounty for adding those atributes.
There is a $100 open bounty on this issue. Add to the bounty at Bountysource.
The text was updated successfully, but these errors were encountered: