It is currently 27 Apr 2024, 06:18
   
Text Size

Card wishlist

Moderators: ubeefx, beholder, melvin, ShawnieBoy, Lodici, CCGHQ Admins

Re: Card wishlist

Postby willianmgbr » 30 Sep 2013, 14:06

I searched and don't found!

Help me!!!
willianmgbr
 
Posts: 6
Joined: 29 Sep 2013, 20:12
Has thanked: 4 times
Been thanked: 0 time

Re: Card wishlist

Postby hong yie » 30 Sep 2013, 21:39

I searched and don't found!

Help me!!!
the script sent to firemind.ch need to be merged into the Magarena source first. it should be available on the next release.
User avatar
hong yie
Programmer
 
Posts: 216
Joined: 10 Mar 2013, 06:44
Location: Jakarta
Has thanked: 75 times
Been thanked: 9 times

Re: Card wishlist

Postby willianmgbr » 01 Oct 2013, 17:13

CRYPT RATS

FILE NAME: Crypt Rats.txt
----------------
name=Crypt Rats
url=(insert normal stuff here)magiccards DOT info/7e/en/125 DOT html
image=(insert normal stuff here)magiccards DOT info/scans/en/7e/125 DOT jpg
value=2
rarity=U
type=Creature
subtype=Rat
cost={2}{B}
pt=1/1
timing=main
requires_groovy_code

----------------------------------------
FILE NAME: Crypt Rats.groovy
------------------
[
new MagicPermanentActivation(
new MagicActivationHints(MagicTiming.None),"Damage"
) {
@Override
public Iterable<MagicEvent> getCostEvent(final MagicPermanent source) {
return [
new MagicPayManaCostEvent(source,"{B}")
];
}

@Override
public MagicEvent getPermanentEvent(final MagicPermanent source,final MagicPayedCost payedCost) {
return new MagicEvent(
source,
this,
"SN deals 1 damage to all creatures and players."
);
}

@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
final Collection<MagicPermanent> targets =
game.filterPermanents(event.getPlayer(),MagicTargetFilter.TARGET_CREATURE);
for (final MagicPermanent target : targets) {
final MagicDamage damage=new MagicDamage(event.getSource(),target,1);
game.doAction(new MagicDealDamageAction(damage));
}
for (final MagicPlayer player : game.getPlayers()) {
final MagicDamage damage=new MagicDamage(event.getSource(),player,1);
game.doAction(new MagicDealDamageAction(damage));
}
}
},
new MagicAtEndOfTurnTrigger() {
@Override
public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent,final MagicPlayer eotPlayer) {
final Collection<MagicPermanent> targets =
game.filterPermanents(permanent.getController(),MagicTargetFilter.TARGET_CREATURE);
return (targets.size() == 0) ?
new MagicEvent(
permanent,
this,
"Sacrifice SN."
):
MagicEvent.NONE;
}

@Override
public void executeEvent(final MagicGame game, final MagicEvent event) {
game.doAction(new MagicSacrificeAction(event.getPermanent()));
}
}
]

----------------------------------
Save both files in "script" folder

(I don't programmer. "Pestilence" script work perfectly)
willianmgbr
 
Posts: 6
Joined: 29 Sep 2013, 20:12
Has thanked: 4 times
Been thanked: 0 time

Re: Card wishlist

Postby willianmgbr » 01 Oct 2013, 17:23

Effect: Add three Black Mana

How I write this on the card test or script?

Help me!!

Thanks!!
willianmgbr
 
Posts: 6
Joined: 29 Sep 2013, 20:12
Has thanked: 4 times
Been thanked: 0 time

Re: Card wishlist

Postby hong yie » 02 Oct 2013, 01:15

willianmgbr wrote:I searched and don't found!

Help me!!!
If you can't wait for the next release, here is something you can try:
Open Notepad++ application.
create a file "Crypt_Rats.txt" in this folder "...\Magarena\scripts\"
write this script in the file Crypt_Rats.txt
Code: Select all
name=Crypt Rats
url=http://magiccards.info/7e/en/125.html
image=http://magiccards.info/scans/en/7e/125.jpg
value=4.340
rarity=U
type=Creature
subtype=Rat
cost={2}{B}
pt=1/1
timing=main
requires_groovy_code=Pestilence Demon
you only need this 1 file if you use this script. :)
Good luck.
User avatar
hong yie
Programmer
 
Posts: 216
Joined: 10 Mar 2013, 06:44
Location: Jakarta
Has thanked: 75 times
Been thanked: 9 times

Re: Card wishlist

Postby hong yie » 02 Oct 2013, 01:16

willianmgbr wrote:Effect: Add three Black Mana

How I write this on the card test or script?

Help me!!

Thanks!!
as far as i know, Magarena doesn't support any abilities with mana pool yet, including priest of ghix , dark ritual.
User avatar
hong yie
Programmer
 
Posts: 216
Joined: 10 Mar 2013, 06:44
Location: Jakarta
Has thanked: 75 times
Been thanked: 9 times

Re: Card wishlist

Postby willianmgbr » 02 Oct 2013, 11:42

hong yie wrote:
willianmgbr wrote:Effect: Add three Black Mana

How I write this on the card test or script?

Help me!!

Thanks!!
as far as i know, Magarena doesn't support any abilities with mana pool yet, including priest of ghix , dark ritual.
Thank you for save me of try hours!!!
willianmgbr
 
Posts: 6
Joined: 29 Sep 2013, 20:12
Has thanked: 4 times
Been thanked: 0 time

Re: Card wishlist

Postby ShawnieBoy » 15 Nov 2013, 21:49

I know that adding multiple mana is a no-no, how about abilities that add mana which don't require a {T}? Or another additional cost?

as in:
Code: Select all
pay {1},{T}: Add [arbitrary singular amount of mana].
pay Sacrifice a creature:Add {1}
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Card wishlist

Postby melvin » 16 Nov 2013, 02:19

Both not possible now, the reason is that the algorithm for generating mana choices makes a number of assumptions.
1) one permanent only generates one mana, such a permanent is a mana source
2) the number of mana sources is fixed during mana generation

So the first type of mana ability breaks the first assumption and the second type of mana ability breaks the second assumption since you may sacrifice a mana generating creature.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

Re: Card wishlist

Postby ShawnieBoy » 16 Jan 2014, 15:12

I must have missed the discussion about Crypt Rats - but I'm afraid it's functioning incorrectly.

Crypt rats doesn't function the same as Pestilence Demon or Pestilence. Rats deal X damage all at once, not multiple instances of 1 damage.

Pestilence effects will never kill a creature with an Absorb-type effect (Lymph Sliver, Daunting Defender), and Guardian Seraph will prevent all damage to a player. But Crypt Rats should (if the extra 1 damage is taken into account).

Also Blightsoil Druid and Horizon Canopy are incorrect, they're currently coded to deal 1 damage to the controller instead of paying 1 life.

I understand all the above are work-arounds, and I am being picky - But should these be placed in the Incomplete folder?
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Card wishlist

Postby jerichopumpkin » 16 Jan 2014, 18:08

ShawnieBoy wrote:Also Blightsoil Druid and Horizon Canopy are incorrect, they're currently coded to deal 1 damage to the controller instead of paying 1 life.
That's true, I did not think about it when I scripted Blightsoil Druid...
It's possible to add "pay X life" as cost to mana abilities? That would open the way for some other cards, like Vesper Ghoul and Phyrexian Lens
jerichopumpkin
 
Posts: 212
Joined: 12 Sep 2013, 11:21
Has thanked: 19 times
Been thanked: 13 times

Re: Card wishlist

Postby ShawnieBoy » 19 Jan 2014, 17:47

Managed to implement 'tap pay 1 life add mana' - adding variable costs to mana abilities may require further looking into.

Also done Graft <n> too :) can test from my clone https://code.google.com/r/shawnieboyuk-magarena-cards/source/list until they get pulled into the main, still wondering if the computer will kill itself by accident if anyone fancies further testing.
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Card wishlist

Postby tiagoruback » 13 Feb 2014, 00:38

Hi, everybody!

I created a card: Fyndhorn Elder
How do I submit the code for the next version?
-------------------------------------------------
name=Fyndhorn Elder
url=http://magiccards.info/8e/en/251.html
image=http://magiccards.info/scans/en/8e/251.jpg
value=3.517
rarity=U
type=Creature
subtype=Elf
cost={2}{G}
pt=1/1
ability=tap add mana {G}{G}
timing=main

Also, I am having trouble with Llanowar Behemoth. How do I code the line: "Tap an untapped creature you control: Llanowar Behemoth gets +1/+1 until end of turn."?

Thanks in advance. I'm trying to program the missing cards to complete some themed decks.

(PS: forgive me spelling mistakes. English is not my native language.)
tiagoruback
 
Posts: 22
Joined: 04 Apr 2012, 14:22
Location: Brazil
Has thanked: 11 times
Been thanked: 6 times

Re: Card wishlist

Postby ShawnieBoy » 13 Feb 2014, 02:51

Welcome! Script submissions are always welcome.

Unfortunately you've found two things that aren't implemented yet:
adding more than one mana, or using a mana pool
tapping an untapped permanent as a cost

But don't worry, there's still cards out there to be found, I'll include my 'Cheat Sheet' that I use. Has all the script enabled abilities etc.

image links for cards are being taken from http://mtgimage.com in the format of http://mtgimage.com/card/cardname.jpg using %20 or _ instead of spaces (blessing%20of%20leeches.jpg or blessing_of_leeches.jpg)

url links are still from http://magiccards.info

Cheat Sheet
Code: Select all
Replacement Guide:
------------------
<n> = number in digits (1,2,3,4 etc.)
<amount> = number in words (one, two, three, etc.)

Abilities format:
-----------------
ability=<ability1>;<ability2>;\
        <ability3>;<ability4>


Static, triggered and activated <ability> keywords:
---------------------------------------------------
ally grow - [Whenever this card or another Ally enters the battlefield under your control, you may put a +1/+1 counter on this card.]
annihilator <n>
attacks effect <effect>
attacks each turn if able
attacks pump <pt change>
battle cry
battalion effect <effect>
bestow <mana cost>
blocked by pump <pt change> - Triggers for each creature blocking this card
blocked pump <pt change> - Triggers once when this card becomes blocked.
blocks or blocked pump <pt change>
bloodthirst <n>
bushido <n>
can block creatures with shadow
can't attack or block
can't be blocked by <color> creatures
can't be blocked by creatures with flying
can't be blocked except by creatures with flying
can't be blocked except by creatures with flying or reach
can't be countered
can't block
can't block creatures without flying
cascade
champion <creature/subtype/subtype or subtype>
changeling
combat damage discard <n>
combat damage draw card
combat damage grow <creature/player> - [Whenever this card deals combat damage to a creature/player, put a +1/+1 counter on it.]
combat damage may draw card <n>
cumulative upkeep <mana cost>
control enchanted
cycling <mana cost>
damage discard card
damage grow <creature/player> - [Whenever this card deals damage to a creature/player, put a +1/+1 counter on it.]
damage opponent discard random card
damage opponent draw card
dead recover graveyard (!!)
deathtouch
defender
devour <n>
dies effect <effect>
doesn't untap during untap step
double strike
each upkeep effect <effect>
echo <mana cost>
end step effect <effect>
enters choose opponent
enters effect <effect>
enters kicked effect <effect>
enters tapped
enters tapped unless <subtype1> <subtype2> - [Enters the battlefield tapped unless you control a land of subtype1 or subtype2.]
enters tapped unless two - [Enters the battlefield tapped unless you control two or fewer other lands.]
enters with counter +1/+1 for each kick <mana cost> - [This card enters the battlefield with a +1/+1 counter on it for each time it was kicked.] [Multikicker only]
enters with counter charge X
enters with counter +1/+1 X
enters with counter <counter type> <n>
evoke <mana cost>
evolve
exalted
extort
fading <n>
fear
first strike
flanking
flash [also need to set timing=flash]
flying
forestwalk
graft <n>
graveyard to library - [shuffles back into library when entering graveyard from anywhere]
haste
heroic effect <effect>
hexproof
indestructible
infect
intimidate
islandwalk
kicker <mana cost>
landfall pump <pt change> - [Whenever a land enters the battlefield under your control, this card gets pt change until end of turn.]
leaves effect <effect>
leaves return exile - [When this card leaves the battlefield, return exiled card.]
level up <mana cost> <max level> - [max level is used by the AI]
library instead of graveyard - [shuffles back into library instead of entering the graveyard from anywhere]
lifelink
living weapon
lord <chosen group> get/have/has <ability/s>/<pt change>
loyalty <n>
miracle <mana cost>
modular <n>
monstrosity <n> <mana cost>
mountainwalk
multikicker <mana cost>
ninjutsu <mana cost>
opponent discard onto battlefield (!!)
persist
plainswalk
poisonous <n> - [Whenever CARDNAME deals combat damage to a player, that player gets <n> poison counters]
protection from <color/monocolored/all colors>
protection from <artifacts/land/creatures/Demons/Dragons/Vampires/Werewolves/Zombies>
pump <mana cost> <pt change>
rampage <n>
reach
regenerate <mana cost>
reinforce <n> <mana cost>
replicate <mana cost>
sac add mana <mana type/any> - [Sacrifice this card: Add one mana of mana type to your mana pool]
sac when targeted
scry <n> - will be implemented in Magarena 1.44
shadow
shock land - [You may pay 2 life. If you don't, this card enters the battlefield tapped.]
shroud
soulbond
soulshift <n>
spirit or arcane effect <effect>
storm
swampwalk
switch pt <cost>
tap add mana <mana type/any> - [e.g. tap add mana {1} or {U}]
tap drain add mana <mana type/any> - [Tap, Remove a charge counter from CARDNAME: Add one mana of mana type to your mana pool]
tap pain add mana <mana type/any> - [Tap: Add <mana type/any> to your mana pool. Source deals 1 damage to you.]
tap pay life add mana <manat type/any> - [Tap, Pay 1 life: Add <mana type/any> to your mana pool.]
tap sac add mana <mana type/any> - [Tap, Sacrifice CARDNAME: Add one mana of mana type to your mana pool]
totem armor
trample
tribute <n> <effect> - [effect occurs if tribute not paid]
unblockable
undying
unleash - [May come into play with +1/+1. If it does, cannot block]
untapped effect <effect>
vanishing <n>
vigilance
wither
your end step effect <effect>
your upkeep effect <effect>


Activated ability with cost:
----------------------------
pay <cost1>[, <cost2>]*: <effect>


Ability <cost>:
---------------
{T} = Tap this permanent
{S} = Sacrifice this permanent
{E} = Exile this permanent
Remove <amount> <counter type> counter|counters from SN
{Once}  = Activate this ability only once each turn
{Q} = Untap this permanent
Return SN to it's owner's hand
Pay <n> life
Sacrifice a(an) (artifact, creature, Goblin, Saproling, Beast, land, Elf, Bat, Samurai, Cleric, Human, Elemental, Wall, permanent)
Discard a card
Discard two cards
{B}{G}{U}{W}{R} = mana colors
{<n>} = any mana
{Sorcery} = Play as sorcery


All <effect>s
-------------
PN may <effect>

destroy <chosen>.
destroy <chosen>. It can't be regenerated.
counter <chosen> unless its controller pays <cost>.
counter <chosen>.
exile <chosen>. [battlefield only]
SN deals <n> damage to <chosen>.
prevent the next <n> damage that would be dealt to <chosen> this turn.
prevent the next <n> damage that would be dealt to PN this turn.
prevent the next <n> damage that would be dealt to SN this turn.
PN draws <amount> card(s).
<chosen> draws <amount> card(s).
PN draws <amount> card(s), then discards <amount> card(s).
<chosen> discards <amount> card(s) (at random).
PN gains <n> life.
<chosen> gains <n> life.
PN loses <n> life.
<chosen> loses <n> life.
<chosen> loses <n> life and PN gains <n> life.
SN gets <p/t change> until end of turn.
<chosen> gets <p/t change> until end of turn.
SN gets <p/t change> and gains <ability> until end of turn.
<chosen> gets <p/t change> and gains <ability> until end of turn.
<group> get <p/t change> until end of turn.
SN gains <ability> until end of turn.
<chosen> gains <ability> until end of turn.
<group> gain <ability> until end of tun.
put <amount> <type> counter(s) on SN.
return SN to its owner's hand.
return SN from the graveyard to its owner's hand.
return <chosen> to its owner's hand.
return <chosen from your graveyard> to your hand.
return <chosen from graveyard> to the battlefield.
tap <chosen>
untap SN
untap <chosen>
PN puts <amount> <token> onto the battlefield.
PN puts the top <amount> card(s) of his or her library into his or her graveyard.
<chosen> puts the top <amount> card(s) of his or her library into his or her graveyard.
pay <cost>. If you don't, sacrifice SN.


Timing
------
main - Main
fmain - First main : haste, can't block, shroud, comes into play, static effect, non tap ability, combat trigger
smain - Second main : defender, non combat or defensive ability, red mana unlikely
flash - Declare attackers or end of turn from opponent
counterflash - Like flash, but also when there is a spell of opponent on stack
pumpFlash - Like flash, but also declare blockers, as response
land - Main
tapland - Second main
enchantment - Main
artifact - Main
aura - Main
equipment - Main
draw - Main
tapping - Main, declare attackers or as response
removal - Main, declare blockers or as response
pump - First main your turn, declare blockers or as response
counter - When there is a spell of opponent on stack
attack - Declare attackers
block - Declare blockers
animate - First main of your turn, declare attackers opponent's turn
token - First main of your turn, declare attackers or end of turn opponent, as response
nextturn - Second main
mustattack - First main opponent's turn
spell - When there is a spell on stack
storm - When a spell was played this turn, second main
none - No restrictions.


Enchantments
------------

given_ability
given_pt
given_color
given_subtype
set_pt


enchant=<target picker>,<target choice>

-target picker

can't attack or block
copy
defender
destroy
destroy no regen
first strike
flying
haste
indestructible
lifelink
pump
sacrifice
shroud
tap
trample
unblockable
weaken

-target choice

creature
pos creature
neg creature
neg creature or land
permanent
pos permanent
neg permanent
neg nonbasic land
land
pos land
neg land
artifact
pos artifact
neg artifact
enchantment
pos enchantment
neg enchantment


Mana
----

The mana property is used to determine the ease a permanent can produce mana of a certain color. The colors are w (white), u (blue), b (black), r (red), and g (green).

r4 means it is very suitable to produce red mana, like a Mountain.
r3 could be for instance : can easily produce red mana, but land comes into play tapped
r2 could be for instance : the land deals 1 damage to you when producing red mana
r1 could be for instance : a charge counter is removed to produce red mana
r0 means it cannot produce red mana at all, but this is omitted.



Not implemented
---------------

Amplify,Banding,Convoke,Delve,Dredge,Entwine,Flashback,Fuse,Horsemanship,Madness,Morph,Phasing,Proliferate,Provoke,Recover,Ripple,Scavenge,Scry (above 1),Suspend,Transfigure,Transmute,Unearth,Retrace,Haunt,Prowl,Clash,Channel,Kinship,Forecast,Split Second,Conspire,Sweep,Splice onto Arcane,Rebound
User avatar
ShawnieBoy
Programmer
 
Posts: 601
Joined: 02 Apr 2012, 22:42
Location: UK
Has thanked: 80 times
Been thanked: 50 times

Re: Card wishlist

Postby melvin » 13 Feb 2014, 06:12

tiagoruback wrote:How do I submit the code for the next version?
Currently the best way to submit card scripts is via Project Firemind's Submit a Card script page at http://www.firemind.ch/card_script_submissions/new

Recommended to create an account on Project Firemind first and login before you submit the script so we will have proper attribution for the submitted script.
User avatar
melvin
AI Programmer
 
Posts: 1062
Joined: 21 Mar 2010, 12:26
Location: Singapore
Has thanked: 36 times
Been thanked: 459 times

PreviousNext

Return to Magarena

Who is online

Users browsing this forum: No registered users and 61 guests

cron

Who is online

In total there are 61 users online :: 0 registered, 0 hidden and 61 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 61 guests

Login Form