An item that increase xp

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: An item that increase xp

Post by Dugi »

I haven't noticed that you have written the store_unit tag improperly. It should look rather like this.

Code: Select all

        
        [store_unit]
            variable=unit
            [filter]
               x,y={X},{Y}
            [/filter]
        [/store_unit]
User avatar
Dorimen
Posts: 55
Joined: March 23rd, 2011, 8:26 am
Location: Italy

Re: An item that increase xp

Post by Dorimen »

Yeah! It works! :D
Thanks for the help! :wink:

So I need to repeat [store_unit] and [unstore_unit] for every time a unit can level up...
DeviantArt Profile
My project: Stickmen Era
Coming soon project: The Chaos Lord- a campaign with the Stickmen Era
--The measure of a man is what he does with power--
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: An item that increase xp

Post by Dugi »

Yes. The best way to determine how many times you need to repeat that is to pick the unit that needs the lowest amount of exp to level-up, expect its exp to the closest value to level-up, and try the item giving the highest amount of exp. Be careful not to repeat that too many times, it can cause a noticeable delay. And don't forget to end the event with

Code: Select all

{CLEAR_VARIABLE unit}
because these would increase the size of save files.
User avatar
Dorimen
Posts: 55
Joined: March 23rd, 2011, 8:26 am
Location: Italy

Re: An item that increase xp

Post by Dorimen »

Yep, another thing that I don't knew...
Added :wink:
DeviantArt Profile
My project: Stickmen Era
Coming soon project: The Chaos Lord- a campaign with the Stickmen Era
--The measure of a man is what he does with power--
Post Reply