It is currently 26 Apr 2024, 22:28
   
Text Size

Spectral Procession

Moderator: CCGHQ Admins

Spectral Procession

Postby --Dream-- » 08 Sep 2012, 16:03

How do you write the card's cost? The game engine doesnt seem to understand {2/W}{2/W}{2/W}.
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time

Re: Spectral Procession

Postby thefiremind » 08 Sep 2012, 16:34

Someone in another post (can't remember who and where) said that the game actually understands that kind of cost, but it has no texture for it, so you don't see the cost on the card.

Since the converted mana cost is 6, a possible way to code the cost is to give a cost of {6}, then put a static ability that decreases the cost by {2} and increases it by {W} for each {W} you can afford.
< Former DotP 2012/2013/2014 modder >
Currently busy with life...
User avatar
thefiremind
Programmer
 
Posts: 3515
Joined: 07 Nov 2011, 10:55
Has thanked: 118 times
Been thanked: 721 times

Re: Spectral Procession

Postby --Dream-- » 08 Sep 2012, 16:52

thefiremind wrote:Someone in another post (can't remember who and where) said that the game actually understands that kind of cost, but it has no texture for it, so you don't see the cost on the card.

Since the converted mana cost is 6, a possible way to code the cost is to give a cost of {6}, then put a static ability that decreases the cost by {2} and increases it by {W} for each {W} you can afford.
I can confirm it's true, just tested it :)
--Dream--
 
Posts: 65
Joined: 28 Jul 2012, 12:01
Has thanked: 4 times
Been thanked: 0 time

Re: Spectral Procession

Postby RiiakShiNal » 08 Sep 2012, 18:55

thefiremind wrote:Someone in another post (can't remember who and where) said that the game actually understands that kind of cost, but it has no texture for it, so you don't see the cost on the card.
I believe that was me. The game did understand the cost itself, but I was unable to get it to display any texture for the cost and I tried several possibilities.
RiiakShiNal
Programmer
 
Posts: 2185
Joined: 16 May 2011, 21:37
Has thanked: 75 times
Been thanked: 497 times


Return to Programming Talk

Who is online

Users browsing this forum: No registered users and 29 guests


Who is online

In total there are 29 users online :: 0 registered, 0 hidden and 29 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 29 guests

Login Form