Module:An: Difference between revisions

From Heroes 3 wiki
Jump to navigation Jump to search
(Created page with "local p = {} --p stands for package function p.hover( frame ) if frame.args[1] == 'Armor of the Damned' then return 'All opponents have these spells effective on them for fifty turns: Slow, Curse, Weakness, and Misfortune. Component effects: +3 to Attack and Defense, +2 to Spell Power and Knowledge.' elseif frame.args[1] == 'Horn of the Abyss' then return 'After a stack of living creatures is slain, a stack of Fangarms will rise in their stead and will stay loya...")
 
m (Formatting)
 
Line 3: Line 3:
function p.hover( frame )
function p.hover( frame )
if frame.args[1] == 'Armor of the Damned'  then
if frame.args[1] == 'Armor of the Damned'  then
return 'All opponents have these spells effective on them for fifty turns: Slow, Curse, Weakness, and Misfortune. Component effects: +3 to Attack and Defense, +2 to Spell Power and Knowledge.'
return 'All opponents have these spells effective on them for fifty turns: Slow, Curse, Weakness, and Misfortune.<br>Component effects: +3 to Attack and Defense, +2 to Spell Power and Knowledge.'
elseif frame.args[1] == 'Horn of the Abyss'  then
elseif frame.args[1] == 'Horn of the Abyss'  then
return 'After a stack of living creatures is slain, a stack of Fangarms will rise in their stead and will stay loyal to the hero after the battle concludes.'
return 'After a stack of living creatures is slain, a stack of Fangarms will rise in their stead and will stay loyal to the hero after the battle concludes.'

Latest revision as of 17:37, 17 April 2024

usage[edit]

[[File:Horn of the Abyss_am-artif.gif|{{#invoke:an|hover|Horn of the Abyss}}]]

After a stack of living creatures is slain, a stack of Fangarms will rise in their stead and will stay loyal to the hero after the battle concludes.


local p = {} --p stands for package

function p.hover( frame )
	if frame.args[1] == 'Armor of the Damned'  then
		return 'All opponents have these spells effective on them for fifty turns: Slow, Curse, Weakness, and Misfortune.<br>Component effects: +3 to Attack and Defense, +2 to Spell Power and Knowledge.'
	elseif frame.args[1] == 'Horn of the Abyss'  then
		return 'After a stack of living creatures is slain, a stack of Fangarms will rise in their stead and will stay loyal to the hero after the battle concludes.'
	else
		return frame.args[1]
	end
end

return p