gold adding event help... PLEASE!!!

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.
monochromatic
Posts: 1549
Joined: June 18th, 2009, 1:45 am

Re: gold adding event help... PLEASE!!!

Post by monochromatic »

Putting what Ceres said into action to make it more clear..

Code: Select all

#define TRIGON_WEALTH_THING
[event]
    name=side turn
    first_time_only=no

    [if]
        [have_unit]
            side=$side_number
            type=Trigon of Wealth
        [/have_unit]

        [then]
            [store_unit]
                [filter]
                    side=$side_number
                [/filter]
                variable=units
                kill=no
            [/store_unit]

             {FOREACH units i}
                 [gold]
                     side=$side_number
                     amount=1
                 [/gold]
             {NEXT i}
             {CLEAR_VARIABLE units}
         [/then]
    [/if]
[/event]
#enddef
User avatar
zengetsu88
Posts: 72
Joined: March 29th, 2010, 7:25 pm
Location: This Universe

Re: gold adding event help... PLEASE!!!

Post by zengetsu88 »

oh wow! I thought I had tried that and it didn't work... but now it does...

so thank you for the help, and here is the official code

Code: Select all

#define TRIGON_WEALTH_THING
[event]
    name=side turn   
    first_time_only=no

    [if]
        [have_unit]
            side=$side_number
            type=Trigon of Wealth
        [/have_unit]

        [then]
            [store_unit]
                [filter]
                    side=$side_number
                [/filter]
                variable=units
            [/store_unit]

            [store_unit]
                [filter]
                    side=$side_number
                    type=Trigon of Wealth
                [/filter]
                variable=ToW
            [/store_unit]

            {FOREACH ToW n}
                {FOREACH units i}
                    [gold]
                        amount=1
                        side=$side_number
                    [/gold]
                {NEXT i}
            {NEXT n}

            {CLEAR_VARIABLE units}
            {CLEAR_VARIABLE ToW}
        [/then]
    [/if]
[/event]
#enddef
now that I'm done with this one I am going to make a few others that are similar... here are my ideas

Trigon of Wealth
- gives gold
Trigon of Power
- increases attack power... either actual damage or number of strikes.
Trigon of Thought
- increases experienced gained or lowers experience needed... can't decide
Trigon of Mending
- heals all units at the beginning of your turn
Trigon of Speed
- add movement points to all units
Trigon of
-

The last one I can't come up with an idea but I want it to be balanced with the others. Any Ideas?

Also I would love help with these other ones. I wouldn't mind keeping them in this topic cause I don't feel like spamming the forum.
my logic is sound
User avatar
Reepurr
Posts: 1088
Joined: August 29th, 2010, 5:38 pm

Re: gold adding event help... PLEASE!!!

Post by Reepurr »

zengetsu88 wrote:I want it to be balanced
.ha ha ha ha.

These are going to need 600 or so XP to level up to, right? Because they're already hugely overpowered.
"What do you mean, "a dwarvish dragonguard with marksman is overpowered"?"

Story of a Drake Outcast | The Nonsense Era
Played HttT-Underground Channels? Thought it was rubbish? Help us develop it here!
User avatar
zengetsu88
Posts: 72
Joined: March 29th, 2010, 7:25 pm
Location: This Universe

Re: gold adding event help... PLEASE!!!

Post by zengetsu88 »

yes definitely. They will be available to both sides though.
my logic is sound
Post Reply