Implementing NEW stuff to Magarena
Posted: 28 May 2012, 23:11
Hello everyone! I been playing with Magarena for the last few days and i am impressed.
The other day I posted in "card wishlist" since there are some cards i would like to see that have not been implemented yet.
In there pcastellazzi (thanks a lot by the way) told me that there are some cards that one can implement by adding scripts. He was very patient and tried to help me, and finally i got what i was doing wrong... it was part of the code.
I am writing this JUST in case there is someone out there like me that just came up with this gem and wants too add some cards but finds it difficult. I hope we can use this thread as a more updated "instruction manual" of some sort, until it is updated in the official site, and who knows maybe it can go further than that.
I've read this, even though outdated it's very well explained>
http://code.google.com/p/magarena/wiki/ ... ntingCards
and here's our conversation on "card wishlist" thread>
viewtopic.php?f=82&t=3700&start=45
I think it would be usefull to understand this to be able to implement the more "simple" cards out there... maybe just to add some more bells & whistles, since it would open up some variety on the actual set of cards. The devs are making one hell of a job updating Magarena, so it would be nice for some of us to help them is this simple tasks like adding simple cards to the mix. This could increase the number of cards and the variety of decks that could be build and leave them with time to "script" the more difficult cards and keep improving the engine.
One thing i notices is that the scripts in Magarena (at least in mine) once i open them look like this>
Here's the "code" of the card i was trying to implement>
Here's the "code" that worked>
On the other hand, i would like to know what other "ability" words i could use to script cards. In the "implementing cards" manual there is a list... but this "ping 1" isn't there so i wonder if this is some sort of "internal code" or something only Magarena uses... and if there are any more of this "words/codes" i need to know to start scripting new cards.
I would like to take some time to talk about the "text" folder and what is it there for? I am currently using my Prodigal Sorcerer without a "text file" and it's working fine... should i make a "text file" though?
Last but not least, i have been adding some stuff to my own Magarena. I noticed there are some "user made" avatars in there. But i wanted to make my own, so i made 30 new avatars. I was wondering if anyone is interested in "new avatars" taken from the MTG site? (i'll leave a screen showing them just in case).
I would also like to make some themes but don't know where to start. Been looking around but haven't fine anything yet. Any idea where can i learn to do that?
I leave a shot of my avatars just in case>
Cheers
The other day I posted in "card wishlist" since there are some cards i would like to see that have not been implemented yet.
In there pcastellazzi (thanks a lot by the way) told me that there are some cards that one can implement by adding scripts. He was very patient and tried to help me, and finally i got what i was doing wrong... it was part of the code.
I am writing this JUST in case there is someone out there like me that just came up with this gem and wants too add some cards but finds it difficult. I hope we can use this thread as a more updated "instruction manual" of some sort, until it is updated in the official site, and who knows maybe it can go further than that.
I've read this, even though outdated it's very well explained>
http://code.google.com/p/magarena/wiki/ ... ntingCards
and here's our conversation on "card wishlist" thread>
viewtopic.php?f=82&t=3700&start=45
I think it would be usefull to understand this to be able to implement the more "simple" cards out there... maybe just to add some more bells & whistles, since it would open up some variety on the actual set of cards. The devs are making one hell of a job updating Magarena, so it would be nice for some of us to help them is this simple tasks like adding simple cards to the mix. This could increase the number of cards and the variety of decks that could be build and leave them with time to "script" the more difficult cards and keep improving the engine.
One thing i notices is that the scripts in Magarena (at least in mine) once i open them look like this>
- Code: Select all
name=AEther Figmenturl=http://magiccards.info/zen/en/40.htmlimage=http://magiccards.info/scans/en/zen/40.jpgvalue=2rarity=Utype=Creaturesubtype=Illusioncolor=uconverted=2cost={1}{U}pt=1/1ability=unblockabletiming=mainrequires_card_code
- Code: Select all
name=AEther Figment
url=http://magiccards.info/zen/en/40.html
image=http://magiccards.info/scans/en/zen/40.jpg
value=2
rarity=U
type=Creature
subtype=Illusion
color=u
converted=2
cost={1}{U}
pt=1/1
ability=unblockable
timing=main
requires_card_code
Here's the "code" of the card i was trying to implement>
- Code: Select all
name=Prodigal Sorcerer
url=http://magiccards.info/7e/en/94.html
image=http://magiccards.info/scans/en/7e/94.jpg
value=3
rarity=C
type=Creature
subtype=Wizard
color=b
converted=3
cost={2}{B}
pt=1/1
ability=ping1
timing=fmain
Here's the "code" that worked>
- Code: Select all
name=Prodigal Sorcerer
url=http://magiccards.info/7e/en/94.html
image=http://magiccards.info/scans/en/7e/94.jpg
value=3
rarity=C
type=Creature
subtype=Wizard
color=b
converted=3
cost={2}{B}
pt=1/1
ability=ping 1
timing=fmain
On the other hand, i would like to know what other "ability" words i could use to script cards. In the "implementing cards" manual there is a list... but this "ping 1" isn't there so i wonder if this is some sort of "internal code" or something only Magarena uses... and if there are any more of this "words/codes" i need to know to start scripting new cards.
I would like to take some time to talk about the "text" folder and what is it there for? I am currently using my Prodigal Sorcerer without a "text file" and it's working fine... should i make a "text file" though?
Last but not least, i have been adding some stuff to my own Magarena. I noticed there are some "user made" avatars in there. But i wanted to make my own, so i made 30 new avatars. I was wondering if anyone is interested in "new avatars" taken from the MTG site? (i'll leave a screen showing them just in case).
I would also like to make some themes but don't know where to start. Been looking around but haven't fine anything yet. Any idea where can i learn to do that?
I leave a shot of my avatars just in case>
- | Open
Cheers