Talk:Character: Difference between revisions

From Path of Exile Wiki
Jump to navigation Jump to search
No edit summary
>Illviljan
No edit summary
Line 31: Line 31:
--[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 15:25, 27 November 2015 (UTC)
--[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 15:25, 27 November 2015 (UTC)
: Yes, you can edit it, as long as you're confident that you know what you're doing. If you think you know what needs to be done, I'd say go for it. —[[User:Vinifera7|Vini]] ([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 19:52, 27 November 2015 (UTC)
: Yes, you can edit it, as long as you're confident that you know what you're doing. If you think you know what needs to be done, I'd say go for it. —[[User:Vinifera7|Vini]] ([[User talk:Vinifera7|t]]|[[Special:Contributions/Vinifera7|c]]) 19:52, 27 November 2015 (UTC)
:: Well, I was thinking something like this:
<pre>
| stat49_id    = maximum_spell_block_%
| stat49_value = 75
| stat49_text  = 75% to maximum [[Spell Block]] Chance
| stat50_id    = base_life_leech_rate_%_per_minute
| stat50_value = 120
| stat50_text  = 2% of maximum [[Life]] per second to [[Life]] [[Leech]] rate
| stat51_id    = base_mana_leech_rate_%_per_minute
| stat51_value = 120
| stat51_text  = 2% of maximum [[Mana]] per second to [[Mana]] [[Leech]] rate
</pre>
:: But I'm not sure if the id and text are correct, I've seen some id's used in other places which leads me to believe the id's are defined by the game.--[[User:Illviljan|Illviljan]] ([[User talk:Illviljan|talk]]) 00:41, 28 November 2015 (UTC)

Revision as of 00:41, 28 November 2015

SMW queries

So I wanted to try these queries with leech rate. The query gives:

       {{#ask: -Has subobject::Character Has stat id::maximum_life_leech_rate_%_per_minute |?Has stat value= |mainlabel=- |limit=1}}  <- Was 1,200 at the time of writing this.

Which is the rate per minute. So I decided to divide the value with 60 to get per second:

Expression error: Unrecognized punctuation character "{".

This does not work because it is displayed as 1,200, not 1200. Anyone know how to solve it?--Illviljan (talk) 19:07, 23 November 2015 (UTC)

First off, you can use <nowiki></nowiki> tags to prevent parsing (i.e for comments)
It's happening because it returns a I18N aware string, basically it formats the number based on your locale, to circumvent this, just add a hash ( # ):
{{#expr:{{#ask: [[-Has subobject::Character]] [[Has stat id::maximum_life_leech_rate_%_per_minute]] |?Has stat value#= |mainlabel=- |limit=1}} /60}}
Yields: Expression error: Unrecognized punctuation character "{".
Also see smw:Help:Displaying_information#Plain_.28unformatted.29_printouts for more about this.


Additionally, since User:Qetuth noted that it would be a bit messy in the prose text, I just made a template to cut down the length of the ask text a bit, it does the above basically:
{{SMW character query|stat=maximum_life_leech_rate_%_per_minute}}
Yields: Template:SMW character query
--OmegaK2 (t|c) 19:50, 23 November 2015 (UTC)

Is the "SMW generic stat table" manually edited? Are we allowed to edit it? There's a few stats I think it is missing:

  • 75% to maximum spell block
  • 2% Base Life Leech Rate
  • 2% Base Mana Leech Rate

--Illviljan (talk) 15:25, 27 November 2015 (UTC)

Yes, you can edit it, as long as you're confident that you know what you're doing. If you think you know what needs to be done, I'd say go for it. —Vini (t|c) 19:52, 27 November 2015 (UTC)
Well, I was thinking something like this:
| stat49_id    = maximum_spell_block_%
| stat49_value = 75
| stat49_text  = 75% to maximum [[Spell Block]] Chance
| stat50_id    = base_life_leech_rate_%_per_minute
| stat50_value = 120
| stat50_text  = 2% of maximum [[Life]] per second to [[Life]] [[Leech]] rate
| stat51_id    = base_mana_leech_rate_%_per_minute
| stat51_value = 120
| stat51_text  = 2% of maximum [[Mana]] per second to [[Mana]] [[Leech]] rate
But I'm not sure if the id and text are correct, I've seen some id's used in other places which leads me to believe the id's are defined by the game.--Illviljan (talk) 00:41, 28 November 2015 (UTC)