How to unstone a unit

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Glowing Fish
Posts: 855
Joined: October 3rd, 2004, 4:52 am
Location: Portland, OR
Contact:

How to unstone a unit

Post by Glowing Fish »

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.
Don't go to Glowing Fish for advice, he will say both yes and no.
Tux2B
Posts: 1217
Joined: March 29th, 2005, 8:18 pm
Location: Toulouse (South of France)
Contact:

Re: How to unstone a unit

Post by Tux2B »

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.
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
Keelta MacRonan
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

Post by Keelta MacRonan »

Tux2B wrote:
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.
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)
Why would it matter how weak the attack is? The cockatrice is a level 2 unit.
My name is Ozymandias, King of kings,
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.
Tux2B
Posts: 1217
Joined: March 29th, 2005, 8:18 pm
Location: Toulouse (South of France)
Contact:

Re: How to unstone a unit

Post by Tux2B »

Keelta MacRonan wrote:
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)
Why would it matter how weak the attack is? The cockatrice is a level 2 unit.
it does matter on how much XP you get when you're getting attacked.
"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
Keelta MacRonan
Posts: 70
Joined: July 8th, 2005, 11:52 pm
Location: At Helm's Deep,assisting in the final defence of the Hornburg

Post by Keelta MacRonan »

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
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.
User avatar
turin
Lord of the East
Posts: 11662
Joined: January 11th, 2004, 7:17 pm
Location: Texas
Contact:

Post by turin »

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
User avatar
Tomsik
Posts: 1401
Joined: February 7th, 2005, 7:04 am
Location: Poland

Post by Tomsik »

turin wrote:XP of killing = 8(level of enemy) + 4(level of enemy=0).
Nope.
If level!=0 - xp=8*lvl
If level == 0 - xp=4
UDD
Posts: 40
Joined: October 14th, 2005, 7:30 pm

Post by UDD »

Tomsik wrote:
turin wrote:XP of killing = 8(level of enemy) + 4(level of enemy=0).
Nope.
If level!=0 - xp=8*lvl
If level == 0 - xp=4
Which is what he said.
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"?
Disto
Posts: 2039
Joined: November 1st, 2004, 7:40 pm
Location: Cambridge, UK

Post by Disto »

turin 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).
Tomsik Turin is right in Algebra 8L +4 (L for level) is 8*L +4
Creator of A Seed of Evil
Creator of the Marauders
Food or Wesnoth? I'll have Wesnoth
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

Disto wrote:
turin 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).
Tomsik Turin is right in Algebra 8L +4 (L for level) is 8*L +4
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.

:lol:
User avatar
Tomsik
Posts: 1401
Joined: February 7th, 2005, 7:04 am
Location: Poland

Post by Tomsik »

Now i'm confused...

Code: Select all

xp level
0   4
1   8
2   16
3   24
4   32
5   40
So.. pseudo-c code(at least i think so :wink: )

Code: Select all

if (level == 0) 
{
xp=4;
}
else
{
xp=level*8;
}
Darth Fool
Retired Developer
Posts: 2633
Joined: March 22nd, 2004, 11:22 pm
Location: An Earl's Roadstead

Post by Darth Fool »

Tomsik wrote:Now i'm confused...
So.. pseudo-c code(at least i think so :wink: )

Code: Select all

if (level == 0) 
{
xp=4;
}
else
{
xp=level*8;
}
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:

Code: Select all

xp=(0==level)?4:8*level;
toms
Posts: 1717
Joined: November 6th, 2005, 2:15 pm

Post by toms »

What are you discussing that long? it´s soo simple:

8*level=xp; 0 means 0,5 at calculating.
First read, then think. Read again, think again. And then post!
Keelta MacRonan
Posts: 70
Joined: July 8th, 2005, 11:52 pm
Location: At Helm's Deep,assisting in the final defence of the Hornburg

Post by Keelta MacRonan »

No, because level 3s give 32 xp.
My name is Ozymandias, King of kings,
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.
Soliton
Site Administrator
Posts: 1630
Joined: April 5th, 2005, 3:25 pm
Location: #wesnoth-mp

Post by Soliton »

Keelta MacRonan wrote:No, because level 3s give 32 xp.
In your modified version maybe... :roll:

Can we please let this rather pointless topic die?
"If gameplay requires it, they can be made to live on Venus." -- scott
Post Reply