Ghetto Recruiting Ability HELP!!!!

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.
Anonymissimus
Inactive Developer
Posts: 2461
Joined: August 15th, 2008, 8:46 pm
Location: Germany

Re: Ghetto Recruiting Ability HELP!!!!

Post by Anonymissimus »

Dixie wrote:2) In a [unit_type] tag, which will mean the event will be active for any scenario said unit is in. This, however, does depend on having a certain unit, and depending on your event, it might be problematic if it is duplicated (if there are three of those units, there will be three times the event).
Afaik no. (If silene was here we could be sure about that...)
The common problem with the feeding ability is caused by different unit_types having the same event. But if the same unit_type appears several times in the same scenario the event is inserted only once.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml startersPlan Your Advancements: mp mod
The Earth's Gut: sp campaignSettlers of Wesnoth: mp scenarioWesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
User avatar
Dixie
Posts: 1757
Joined: February 10th, 2010, 1:06 am
Location: $x1,$y1

Re: Ghetto Recruiting Ability HELP!!!!

Post by Dixie »

Hmm, interesting. I'll take good note about this. (would explain why sometimes I got the duplicate problems, and why some other I didn't seem to).
Jazz is not dead, it just smells funny - Frank Zappa
Current projects: Internet meme Era, The Settlers of Wesnoth
User avatar
zengetsu88
Posts: 72
Joined: March 29th, 2010, 7:25 pm
Location: This Universe

Re: Ghetto Recruiting Ability HELP!!!!

Post by zengetsu88 »

Alright what Dixie and Mabuse have told me, I will put it in the ERA tag.
Can I get a little more detailed instructions about that, like exactly where the files are located under resources or data in the wesnoth files.
Then can I get detailed instructions of how and where to put the code in the ERA tag.

Dixie, you said that I would add it to the era file in my main.cfg under my add-on's directory.
This is probably a really stupi question but where is the add-on's directory... I'm doing most of my stuff directly to the files of wesnoth... so when everybody says put it in the era tag im thinking the resources/core/multiplayer/eras.cfg... is this right?

Here is the code ihave in the eras.cfg for wesnoth itself.
Spoiler:
right now when i click on the spawn unit menu item. the olny message that comes up is "unit does not have enough moves...
so i think that it is this that is messing it up

Code: Select all

                [if]
                    [variable]
                        name="unit.moves"
                        greater_than_equal_to=1
                    [/variable]
how can i fix this...
my logic is sound
User avatar
zengetsu88
Posts: 72
Joined: March 29th, 2010, 7:25 pm
Location: This Universe

Re: Ghetto Recruiting Ability HELP!!!!

Post by zengetsu88 »

BOOM!!!! after long and arduous work, I got it to finally work!
Spoiler:
I put it in my eras.cfg file and i use it in conjunction with a dummy ability called spawn.

A lot of credit needs to go to Mabuse and a few others. Without their help I wouldn't have been able to do it. Thanks!
my logic is sound
Post Reply