It is currently 07 Jul 2021, 13:39
   
Text Size

Mana pool view?

Moderators: Xander9009, CCGHQ Admins

Mana pool view?

Postby 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?
Rickycoe123
 
Posts: 138
Joined: 14 Mar 2013, 22:44
Has thanked: 1 time
Been thanked: 15 times

Re: Mana pool view?

Postby 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. :lol: 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
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Mana pool view?

Postby 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)
MC Brodie
 
Posts: 310
Joined: 01 Jun 2013, 00:10
Has thanked: 44 times
Been thanked: 34 times

Re: Mana pool view?

Postby gorem2k » 19 Aug 2013, 16:02

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.
It's supposed to work with RSN manual mana functions.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Mana pool view?

Postby 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.
-----------------------------------------------------------------------
Song of the Day: 46 and 2 (cover)
MC Brodie
 
Posts: 310
Joined: 01 Jun 2013, 00:10
Has thanked: 44 times
Been thanked: 34 times

Re: Mana pool view?

Postby gorem2k » 19 Aug 2013, 16:26

Image

if it doesn't work you can copy/paste the code from cards you have that show mana pool correctly.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Mana pool view?

Postby 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)
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.

| 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)
MC Brodie
 
Posts: 310
Joined: 01 Jun 2013, 00:10
Has thanked: 44 times
Been thanked: 34 times

Re: Mana pool view?

Postby sumomole » 20 Aug 2013, 01:55

MC Brodie wrote: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)
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.
"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.
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
User avatar
sumomole
Programmer
 
Posts: 611
Joined: 07 Jun 2011, 08:34
Has thanked: 51 times
Been thanked: 233 times

Re: Mana pool view?

Postby gorem2k » 20 Aug 2013, 15:01

sumomole 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.
Sorry :oops:

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
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times

Re: Mana pool view?

Postby 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?

Postby gorem2k » 24 Aug 2013, 02:40

Rickycoe123 wrote:so if i put them into a deck it would show everytime i activate mana?
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.

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.
gorem2k
 
Posts: 464
Joined: 01 Apr 2013, 04:21
Has thanked: 48 times
Been thanked: 33 times


Return to 2014

Who is online

Users browsing this forum: No registered users and 10 guests


Who is online

In total there are 10 users online :: 0 registered, 0 hidden and 10 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: No registered users and 10 guests

Login Form