Board index
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks
2014
Programs with AI or Rules Enforcement
Magic: The Gathering - Duels of the Planeswalkers
New MTG Cards and Decks
2014
Mana pool view?
Moderators: Xander9009, CCGHQ Admins
Mana pool view?
by Rickycoe123 » 17 Aug 2013, 17:31
Hey guys
I was just wondering if there was a script to always show your mana pool, so many times I've had about 9/10 mana in my pool... but it only shows for about 5 seconds,
is anyone able to write a hardcoded script to show this?
I was just wondering if there was a script to always show your mana pool, so many times I've had about 9/10 mana in my pool... but it only shows for about 5 seconds,
is anyone able to write a hardcoded script to show this?
- Rickycoe123
- Posts: 138
- Joined: 14 Mar 2013, 22:44
- Has thanked: 1 time
- Been thanked: 15 times
Re: Mana pool view?
by gorem2k » 18 Aug 2013, 23:13
I don't think a script is possible but you can put one copy of this Mana Keeper in your deck.
I was too lazy to add my own picture and code, so I've simply butchered Leyline of Deity's and switched to reddish color.
- Attachments
-
MANA_KEEPER_444.zip- (77.66 KiB) Downloaded 183 times
Re: Mana pool view?
by MC Brodie » 19 Aug 2013, 15:59
I couldn't seem to get this to work. Where does the message display? This could be an option for using variable localised text.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Mana pool view?
by gorem2k » 19 Aug 2013, 16:02
It's supposed to work with RSN manual mana functions.MC Brodie wrote:I couldn't seem to get this to work. Where does the message display? This could be an option for using variable localised text.
Re: Mana pool view?
by MC Brodie » 19 Aug 2013, 16:18
I figured. I have his mana functions installed (though maybe not the latest if they've been updated). I played a basic land, manually tapped it and then activated the ability on your card. I didn't notice any change in the game. I tried the same with a dual land I made myself and experienced the same result.
I could be just missing something or not doing it currently. Where should the message display?
I'll have to look at it again later tonight.
I could be just missing something or not doing it currently. Where should the message display?
I'll have to look at it again later tonight.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Mana pool view?
by gorem2k » 19 Aug 2013, 16:26

if it doesn't work you can copy/paste the code from cards you have that show mana pool correctly.
Re: Mana pool view?
by MC Brodie » 20 Aug 2013, 00:40
It appears I'm missing a function or something. I get the following error:
- Error | Open
- Code: Select all
[lua] [string "MANA_KEEPER_444_TITLE (RESOLUTION_TIME_ACTION)~0x000001a6"]:9: attempt to call global 'ManaTokenType' (a nil value)
- | Open
- Code: Select all
<RESOLUTION_TIME_ACTION>
local player = EffectController()
local count = {}
local message = ""
local color_letter = {"X", "W", "U", "B", "R", "G"}
local token_name = {"RSN_TOKEN_MANA_C", "RSN_TOKEN_MANA_W", "RSN_TOKEN_MANA_U", "RSN_TOKEN_MANA_B", "RSN_TOKEN_MANA_R", "RSN_TOKEN_MANA_G"}
for i=0,5 do
local filter = ClearFilter()
filter:Add( FE_CARD_NAME, OP_IS, token_name[i] )
filter:Add( FE_CONTROLLER, OP_IS, EffectController())
filter:Add( FE_IS_TAPPED, false )
count[i] = filter:Count()
message = message.."{"..color_letter[i+1].."}"..count[i].." "
end
player:DisplayMessage(" mana pool: \]\n\n\["..message)
</RESOLUTION_TIME_ACTION>
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
Song of the Day: 46 and 2 (cover)
Re: Mana pool view?
by sumomole » 20 Aug 2013, 01:55
"ManaTokenType" is my old function, now all my functions have added prefix "S_", but the code is the same, it's used to get the name of the RSN's mana tokens.MC Brodie wrote:It appears I'm missing a function or something. I get the following error:No message displays when I activate the ability. I tried changing it around to the code below. With that code the message displays but it doesn't work because I get 0 mana in all of my pools.
- Error | Open
- Code: Select all
[lua] [string "MANA_KEEPER_444_TITLE (RESOLUTION_TIME_ACTION)~0x000001a6"]:9: attempt to call global 'ManaTokenType' (a nil value)
- Code: Select all
ManaTokenType = function(colour)
local type_MT = {}
type_MT[0] = "TOKEN_MANA_C"
type_MT[1] = "TOKEN_MANA_W"
type_MT[2] = "TOKEN_MANA_U"
type_MT[3] = "TOKEN_MANA_B"
type_MT[4] = "TOKEN_MANA_R"
type_MT[5] = "TOKEN_MANA_G"
return type_MT[colour]
end
-

sumomole - Programmer
- Posts: 611
- Joined: 07 Jun 2011, 08:34
- Has thanked: 51 times
- Been thanked: 233 times
Re: Mana pool view?
by gorem2k » 20 Aug 2013, 15:01
Sorrysumomole wrote:"ManaTokenType" is my old function, now all my functions have added prefix "S_", but the code is the same, it's used to get the name of the RSN's mana tokens.
I have to clean up and organize my D14 mod files better!!! I shouldn't try to fill requests when I'm busy with other stuff..
anyway , I've substituted the ManaTokenType function with a local.
Try this:
- Attachments
-
MANA_KEEPER_444.zip- (77.69 KiB) Downloaded 153 times
Re: Mana pool view?
by Rickycoe123 » 23 Aug 2013, 19:46
so if i put them into a deck it would show everytime i activate mana?
- Rickycoe123
- Posts: 138
- Joined: 14 Mar 2013, 22:44
- Has thanked: 1 time
- Been thanked: 15 times
Re: Mana pool view?
by gorem2k » 24 Aug 2013, 02:40
it's best to just memorize or calculate on the fly your mana because this card use one more slot, so if you start the game with this card in hand you will have 6 cards instead of 7.Rickycoe123 wrote:so if i put them into a deck it would show everytime i activate mana?
if you decide to use it, put only 1 copy in your deck, it will always be cast for free from anywhere on first turn. and no, it doesn't show everytime you activate mana, you have to activate that card manually to see your mana pool.
11 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests
