code submission opponenthand/exileview/more +++

All code submission.

Re: I have some AMAZING news to share :D :D :D

Postby sucellos11 » Fri Jul 09, 2010 7:11 pm

This is good news indeed! You don't stop innovating! Keep on that way. Thanks to your discovery a whole new batch of cards is codable. Nice!
sucellos11
 
Posts: 12
Joined: Wed Jul 07, 2010 12:02 pm

Re: I have some AMAZING news to share :D :D :D

Postby Kalmana » Fri Jul 09, 2010 8:51 pm

So would we be able to put in horror cards soon? like the faceless butcher?
Image
Kalmana
 
Posts: 12
Joined: Thu Jun 03, 2010 12:19 am

Re: I have some AMAZING news to share :D :D :D

Postby Zethfox » Fri Jul 09, 2010 9:32 pm

well yeah :) hopefully
just finished adding in the opponentsexile zone...so both zone are complete...
working on a opponent hand area next...hopefully i can get it working as nicely as the exiles worked...

so far ive added the following,

lifetotal as a varible you can now check life totals for your self and your opponent at any given phase,

a reverse copy system i call hosting...which makes a card copy the host card instead of the other way around(current system),

added both Exile zones,

added support for autoexile= so commands can trigger only when the card hits the exile or is in the exile,
added support for autostack= so commands can trigger or be activated while the card is on the stack and ONLY while its in the stack.


working on: a reveal zone, an opponent hand(if possible), @untapped trigger, @damaged(controller) trigger, deck re-arranging once reveal zone is done so you can finally "draw:3 and put 2 on top in any order.", and if all things go well working on cascade/play with top card revealed/clash....

not saying i can actually do all this or that these things dont have limitations but anything added as a tool opens up alot of possiblities...with the Host system you can now sort of code morph, tho I dont know how to get it to display a different image the creature can come out as a 2/2 with nothing and be morphed into its real form with its real name and abilities without removing it from play..and the life total varible seems to record its current number, BUT if you use tokens to check the life totals you will always get the updated total...so cards like "if you have 50 life during your upkeep you win" can be coded with it.
theres alot i dont understand about the code, like why "moveto(mybattlefield) target(creature|myexile)" works flawlessly and "moveto(mybattlefield) all(creature|myexile)" wont even bring up the move to prompt...
Zethfox
 
Posts: 2791
Joined: Thu Jun 10, 2010 11:28 pm

Re: I have some AMAZING news to share :D :D :D

Postby moxen » Sat Jul 10, 2010 4:45 am

Way to go Zeth!
Only those crazy enough to think they can change the world are the ones who do.

Wishlist: Sneak Attack, Through the Breach, Aluren, Serra Avatar, Goblin Piledriver
moxen
 
Posts: 254
Joined: Fri May 21, 2010 7:00 am

Re: I have some AMAZING news to share :D :D :D

Postby Zethfox » Sat Jul 10, 2010 7:03 am

this is not easy for a beginner...alot of luck i think honestly....oh and about 30 tutorials on C++
Zethfox
 
Posts: 2791
Joined: Thu Jun 10, 2010 11:28 pm

Re: I have some AMAZING news to share :D :D :D

Postby kaioshin » Sat Jul 10, 2010 8:21 am

Again, wow. I like how you tackle all the major things Wagic couldn't do. Cascade, Scry, Exile, @untapped etc. are all awesome!
Just another question about Life as a variable.

Can you do cards like the Bloodghast, which checks life permanently (state based) and gets a boost when it's under 10? Or can you just check at every phase (which would be something different).

Anyway, good luck with all your planned stuff. If you need any help testing cards etc. you can ask me! And if you got more training and feel ready, maybe you could try the Planeswalker card type. We are just a few steps away from Planeswalkers, most abilities work with the token trick (and Ajani works with your Life variable, too ;) ).

Cheers!
kaioshin
 
Posts: 267
Joined: Wed Feb 25, 2009 1:49 pm

Re: I have some AMAZING news to share :D :D :D

Postby Zethfox » Sat Jul 10, 2010 8:38 am

kaioshin wrote:Again, wow. I like how you tackle all the major things Wagic couldn't do. Cascade, Scry, Exile, @untapped etc. are all awesome!
Just another question about Life as a variable.

Can you do cards like the Bloodghast, which checks life permanently (state based) and gets a boost when it's under 10? Or can you just check at every phase (which would be something different).

Anyway, good luck with all your planned stuff. If you need any help testing cards etc. you can ask me! And if you got more training and feel ready, maybe you could try the Planeswalker card type. We are just a few steps away from Planeswalkers, most abilities work with the token trick (and Ajani works with your Life variable, too ;) ).

Cheers!


it seems to pretty much copy paste your life total from the moment the card called for "lifetotal" but im sure with tokens we can get the effects we're looking for...maybe a code master would look at it and decide that they could tweak it or make it right...who knows...im no real coder and most of what ive done would have take 2 mins for anyone with real coding experence. im going to try the reveal zone again tomarrow, I made it today but for some reason i couldnt get the cards to go to it instead of exile...and the opponent hand code it diffecult cause i dont really know C++ so its alot alot alot of trial and error...im trying to get the opponent hand to be selectable, and if you have a card that targets from it, it will open a window box like the library does now and show you his hand...there might even be an easier way to do it, who knows...there is a show hand command in the source...i wonder if that can be adapted to work for Ai hand.

anyways ill be working more on it tomarrow...i might post the whole folder up so you guys that are interested can see what ive done so far, the last link aparently gives configuration error cause it was just the templete and i have different settings then defualt.
i do know this tho. its nice to have an extra zone...if this get put into the full version we might have to start telling are tokens to (moveto|temp) which seems like an abyss zone in wagic. im not really sure what its for lol...but the new exile zones do show all our token workarounds cause thats where weve been telling them to go...without thinking someday we might have a real exile GUI

Image
Image
Image
Image
Image

i would like opponent hand to be selectable from right where it is, which doesnt seem impossible, coding the exile zone i know that all it takes is 3 lines of code to make anything on the screen a selectable item...once i get the "play with top card of library revealed" i plan on adding magictext autolibrary= so cards that say you can play them will be codable...then i can use the same code to make the opponents cards turn over :) i know the cards themselves are nothing more then fancy buttons tho, so it will take some serious thinking.

i kinda wish Wagic was a flash based game written in action script, cause man i know flash inside and out...it would be interesting if it was too, since the cards would all be coded as Objects, you can pretty much make them do anything you want with very little effort.
Zethfox
 
Posts: 2791
Joined: Thu Jun 10, 2010 11:28 pm

Re: I have some AMAZING news to share :D :D :D

Postby Zethfox » Sun Jul 11, 2010 3:38 am

Added opponents hand, still have some tweaking to do, but works like any other zone, you click it and it opens his hand view and you can now select a card from his hand to "destroy" or whatever.

the opponents hand is only accessible if you have a card allowing you to go into it...much like the library works currently...its a beautiful sight :) no more ghetto workarounds to get the opponents hand to display.

next on the list Reveal zone
and a way to display the top card of library..

man this is NOT easy.
but i hope im not ravaging the source too much with my changes lol

right now i have the reveal zone coded, i have a "reveal:#" ability coded which moves cards to that zone, cards can be fetched out single target since (just like the exile) i cant figure out why "All(" excludes those zones, now working on the Gui for the reveal and where on earth to put the reveal button if i cant figure out how to just show a selector box when any card is present in that zone....

on other news the new host command is sweet, it effectively removes all code from the target card and replaces it with the "hoster" cards autolines...meaning you can grant a card in the battlefield new autolines....without having to remove it from play...and strip off its out autolines which currently cant be done...this might lead way to a new ghetto affinity :D since you can host cards in your hand the ability to become a totally different card, unfortunately it doesnt change the cards picture(not sureif this is good or bad yet)
it also seems to allow changing the card without overriding the bonuses of counter or enchantments ect...which the becomes( effect seems to do...its much more like a new improved "becomes("

but like with everything it needs testing to figure out its limitation and what it can and cant do...just like the current copy lol, the limitations are uncertain...but the doors this opens are many.
Zethfox
 
Posts: 2791
Joined: Thu Jun 10, 2010 11:28 pm

Re: I have some AMAZING news to share :D :D :D

Postby Dr.Solomat » Sun Jul 11, 2010 7:39 am

@Zethfox:

WOW°°°°!

This is amazing! I hope that Wololo recognizes what you are doing here! ;)


Can you make a short tutorial how people can install your addon if you load it up next time?
Sets Coded/Released: Legends, Visions, Weatherlight, Tempest, Stronghold, Portal I & III, Urza's Saga BLOCK, Mercadian Masques, Invasion BLOCK, Mirrodin, Ravnica, Guildpact, Conflux, Alara Reborn
Dr.Solomat
 
Posts: 975
Joined: Mon Dec 15, 2008 5:12 pm
Location: Germany

Re: I have some AMAZING news to share :D :D :D

Postby sucellos11 » Sun Jul 11, 2010 8:41 am

Wow, it's amazing, even more new mechanics implemented?! You sure are inspired! In no time almost nearly every card will be codable if you continue that way, lol.
sucellos11
 
Posts: 12
Joined: Wed Jul 07, 2010 12:02 pm

Advertising

PreviousNext

Return to Code submission

Who is online

Users browsing this forum: No registered users and 0 guests