How to unstone a unit
Moderator: Forum Moderators
-
- Posts: 855
- Joined: October 3rd, 2004, 4:52 am
- Location: Portland, OR
- Contact:
How to unstone a unit
I have found a way to unstone a unit.
It won't come up much, but it is possible.
When a unit levels up, it gets rid of all its status ailments, including stoning.
So, if a cockatrice attacks a unit that is 2 XP away from levelling up, and stones it, the unit will then level up and escape stoning.
It won't come up much, but it is possible.
When a unit levels up, it gets rid of all its status ailments, including stoning.
So, if a cockatrice attacks a unit that is 2 XP away from levelling up, and stones it, the unit will then level up and escape stoning.
Don't go to Glowing Fish for advice, he will say both yes and no.
Re: How to unstone a unit
But if it fails... you loose your lvl2 unit (I mean if he only gets 1 XP, because a cockatrice's attack is quite weak, actually)Glowing Fish wrote:I have found a way to unstone a unit.
It won't come up much, but it is possible.
When a unit levels up, it gets rid of all its status ailments, including stoning.
So, if a cockatrice attacks a unit that is 2 XP away from levelling up, and stones it, the unit will then level up and escape stoning.
"There are two kind of campaign strategies : the good and the bad ones. The good ones almost always fail because of unforeseen consequences that make the bad ones succeed." -- Napoleon
-
- Posts: 70
- Joined: July 8th, 2005, 11:52 pm
- Location: At Helm's Deep,assisting in the final defence of the Hornburg
Re: How to unstone a unit
Why would it matter how weak the attack is? The cockatrice is a level 2 unit.Tux2B wrote:But if it fails... you loose your lvl2 unit (I mean if he only gets 1 XP, because a cockatrice's attack is quite weak, actually)Glowing Fish wrote:I have found a way to unstone a unit.
It won't come up much, but it is possible.
When a unit levels up, it gets rid of all its status ailments, including stoning.
So, if a cockatrice attacks a unit that is 2 XP away from levelling up, and stones it, the unit will then level up and escape stoning.
My name is Ozymandias, King of kings,
Look on my works, Ye Mighty, And despair!
-Percy Bysshe Shelley
Look on my works, Ye Mighty, And despair!
-Percy Bysshe Shelley
romnajin wrote:She's a hippy nature girl that lives with animals, she's not supposed to be sexy, you can save that for the high elves.
Re: How to unstone a unit
it does matter on how much XP you get when you're getting attacked.Keelta MacRonan wrote:Why would it matter how weak the attack is? The cockatrice is a level 2 unit.Tux2B wrote: But if it fails... you loose your lvl2 unit (I mean if he only gets 1 XP, because a cockatrice's attack is quite weak, actually)
"There are two kind of campaign strategies : the good and the bad ones. The good ones almost always fail because of unforeseen consequences that make the bad ones succeed." -- Napoleon
-
- Posts: 70
- Joined: July 8th, 2005, 11:52 pm
- Location: At Helm's Deep,assisting in the final defence of the Hornburg
No, only the level of the unit that is attacking matters. I think we might be arguing at cross-purposes.
My name is Ozymandias, King of kings,
Look on my works, Ye Mighty, And despair!
-Percy Bysshe Shelley
Look on my works, Ye Mighty, And despair!
-Percy Bysshe Shelley
romnajin wrote:She's a hippy nature girl that lives with animals, she's not supposed to be sexy, you can save that for the high elves.
I think Tux2B is confused about how XP works... XP for fighting = level of enemy, period. XP of killing = 8(level of enemy) + 4(level of enemy=0).
For I am Turin Turambar - Master of Doom, by doom mastered. On permanent Wesbreak. Will not respond to private messages. Sorry!
And I hate stupid people.
The World of Orbivm
And I hate stupid people.
The World of Orbivm
Which is what he said.Tomsik wrote:Nope.turin wrote:XP of killing = 8(level of enemy) + 4(level of enemy=0).
If level!=0 - xp=8*lvl
If level == 0 - xp=4
If level=0 then you get XP of killing = 8*0 + 4*1 = 4
If level=1 then you get XP of killing = 8*1 + 4*0 = 8
If level=2 then you get XP of killing = 8*2 + 4*0 = 16
If level=3 then you get XP of killing = 8*3 + 4*0 = 24
If level=4 then you get XP of killing = 8*4 + 4*0 = 32
If level=5 then you get XP of killing = 8*5 + 4*0 = 40
etc....
~
When you turn your computer off, its called a "Shut Down".
Shouldn't turning your computer on be called a "Shut Up"?
When you turn your computer off, its called a "Shut Down".
Shouldn't turning your computer on be called a "Shut Up"?
-
- Retired Developer
- Posts: 2633
- Joined: March 22nd, 2004, 11:22 pm
- Location: An Earl's Roadstead
Well, I am pretty sure that in their head, they both had it right. Although, just for fun, I would point out in pseudo-C, that turin's is not quit right, since level of enemy=0 sets the level to 0 and then multiplies 0 by 4! what he should have said is XP = 8(level of enemy) + 4(level of enemy == 0), or in the preffered way to avoid such problems: XP = 8(level of enemy) + 4(0==level of enemy) where the compiler can then catch the error if you try 0=level of enemy.Disto wrote:Tomsik Turin is right in Algebra 8L +4 (L for level) is 8*L +4turin wrote:I think Tux2B is confused about how XP works... XP for fighting = level of enemy, period. XP of killing = 8(level of enemy) + 4(level of enemy=0).
"you can already do that with WML"
Fight Creeeping Biggerism!
http://www.wesnoth.org/forum/viewtopic. ... 760#131760
http://www.wesnoth.org/forum/viewtopic. ... 1358#11358
Now i'm confused...
So.. pseudo-c code(at least i think so )
Code: Select all
xp level
0 4
1 8
2 16
3 24
4 32
5 40
Code: Select all
if (level == 0)
{
xp=4;
}
else
{
xp=level*8;
}
-
- Retired Developer
- Posts: 2633
- Joined: March 22nd, 2004, 11:22 pm
- Location: An Earl's Roadstead
use if(0 == level) getting in the habit of doing that will save you a major headache at least once in your coding lifetime, probably more than once. But to completely devolve:Tomsik wrote:Now i'm confused...
So.. pseudo-c code(at least i think so )Code: Select all
if (level == 0) { xp=4; } else { xp=level*8; }
Code: Select all
xp=(0==level)?4:8*level;
"you can already do that with WML"
Fight Creeeping Biggerism!
http://www.wesnoth.org/forum/viewtopic. ... 760#131760
http://www.wesnoth.org/forum/viewtopic. ... 1358#11358
-
- Posts: 70
- Joined: July 8th, 2005, 11:52 pm
- Location: At Helm's Deep,assisting in the final defence of the Hornburg