Need help whit ability.

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.
Post Reply
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Need help whit ability.

Post by alluton »

Do you know how to do ability where unit can consume gold to summon unit in your side.(like i got necromancer and it uses 20 gold to summon ghost in N of it.) And im okey whit one time onyl of once per turn.(if you know any threads answering my question or similar threads of this kind abilityes. i would preshied(it this spelled right:D?) it.

Thanks for veryone even reading this. Ang more thanks answer ones.
"This game cured me of my real life addiction."
-Flameslash
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: Need help whit ability.

Post by monochromatic »

alluton wrote:Do you know how to do ability where unit can consume gold to summon unit in your side.(like i got necromancer and it uses 20 gold to summon ghost in N of it.) And im okey whit one time onyl of once per turn.(if you know any threads answering my question or similar threads of this kind abilityes. i would preshied(it this spelled right:D?) it.

Thanks for veryone even reading this. Ang more thanks answer ones.
Aren't you describing what recruiting is? Or am I misunderstanding?
User avatar
Pentarctagon
Project Manager
Posts: 4619
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Need help whit ability.

Post by Pentarctagon »

You would use [set_menu_item] to create a right click icon, which would trigger a message with a bunch of options of different units to summon. For each option you would check if the person's gold is greater than or equal to the gold required to summon the unit. if yes, then subtract the gold from their side and then create the unit next to them.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
Golbeeze
Posts: 441
Joined: November 13th, 2007, 3:18 am

Re: Need help whit ability.

Post by Golbeeze »

Look up Era of Magic and Era of High Sorcery. They both have the ability to summon a unit.
Also, it is spelled "appreciate."
My_Own_Minion: get rid of the scientist, i can take the blind guy

Talkative: You're like the Wizard of Oz, but evil.

Add-ons in 1.8: Golbeeze's Maps, Golbeeze's RPGs, Evolving Era
Contributor to and Maintainer of Mercenaries
alluton
Posts: 420
Joined: June 26th, 2010, 6:49 pm
Location: Finland

Re: Need help whit ability.

Post by alluton »

thank you for you answers.
"This game cured me of my real life addiction."
-Flameslash
Post Reply