Author Topic: MTG-like card game  (Read 14488 times)

0 Members and 1 Guest are viewing this topic.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
MTG-like card game
« Reply #30 on: January 15, 2008, 10:08:00 pm »
Quote
Maybe a conversion of data files (decks), Wizards<->MTG game ;)...endless possibilities.
um... what? :blink:

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
MTG-like card game
« Reply #31 on: January 15, 2008, 11:39:00 pm »
Possible to trade decks from this game to Wizards, make the decks convertible or such.

Offline JonimusPrime

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 389
  • Rating: +25/-5
    • View Profile
    • Jonimoose.net
MTG-like card game
« Reply #32 on: January 15, 2008, 11:44:00 pm »
well depending on how wizards stores its cards it would be possible to convert it to a list and then send it to the calc with this game.

"Always code as if the person who will maintain your code is a maniac serial killer that knows where you live" -Unknown

"If you've done something right no one will know that you've done anything at all" -Futurama

"Have a nice day, or not, the choice is yours." Tom Steiner

Offline {AP}

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 981
  • Rating: +74/-3
  • I am Webmaster!
    • View Profile
    • Removed From Game
MTG-like card game
« Reply #33 on: January 15, 2008, 11:58:00 pm »
Please get this to work... =P
I tried this once... and failed miserably.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
MTG-like card game
« Reply #34 on: January 16, 2008, 12:54:00 am »
@kalan_vod and the TheStorm: Wizards is ASM though, I don't know if it would be possible to allow the two to play nicley together nor do I know how to go about converting them. Also, they will probably be to differnt gameplay-wise, IE- many of the card effects in my game simply wouldnt work in wizards.
@AP: My intention is nothing but failure. :p

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
MTG-like card game
« Reply #35 on: January 16, 2008, 02:55:00 am »
Oops, I thought this was in asm (do not know why) sorry..

Offline NanoWar

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 140
  • Rating: +18/-6
    • View Profile
MTG-like card game
« Reply #36 on: January 16, 2008, 10:41:00 am »
Hey, let's make different games :P ! ...Funky idea though.

Liazon

  • Guest
MTG-like card game
« Reply #37 on: January 16, 2008, 12:01:00 pm »
i agree, just make different games.  more different kinds of fun :)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
MTG-like card game
« Reply #38 on: January 18, 2008, 02:38:00 pm »
Does anyone know of a quick way to retrieve a value from a decimal place of a number? For example, I have the decimal number 0.12345678 . Is there a way I can retrive the values of the individual decimal places?

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
MTG-like card game
« Reply #39 on: January 18, 2008, 03:51:00 pm »
Quote
Does anyone know of a quick way to retrieve a value from a decimal place of a number? For example, I have the decimal number 0.12345678 . Is there a way I can retrive the values of the individual decimal places?
Depends how many decimal places:
Code: [Select]
:int(10fpart(0.12345678 ;would get 1, and increase the 10 to more if you want more of the numbers

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
MTG-like card game
« Reply #40 on: January 18, 2008, 04:10:00 pm »
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!

Offline kalan_vod

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2715
  • Rating: +10/-0
    • View Profile
    • kalanrock.us
MTG-like card game
« Reply #41 on: January 18, 2008, 04:47:00 pm »
Quote
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!
Conversion to a string is always a quick optimized routine ;).

vuurrobin

  • Guest
MTG-like card game
« Reply #42 on: January 19, 2008, 02:49:00 pm »
Quote
I want the to grab the individual values though, if I multiply by 100 next time it would get me 12, and by 1000 123. I wanted to be able to retrive just 1, or just 2 or just 8 and so forth. I found a solution too. All i have to do is convert the number to a string, use the sub command to grab whatever part of the string i want, then convert it back to a number!

if you want to get the 2, you could multiply by 10, take the fpart, multiply by 10 again, and take the int. you could even use seq( and create a list with each value.

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
MTG-like card game
« Reply #43 on: January 19, 2008, 03:20:00 pm »
could you post some sample code? I'm not exactly sure what you mean. I could see doing it like this:(off the top of my head)
Code: [Select]
0.12345678->A
1->dim L1
1->C
For I,1,8
AC->B
B->L1(dimL1)
1+dimL1->dim L1
ipart(A-A->A
10C->C
End
I'm unfamilar with the seq( command also, so I dont know how it works.

vuurrobin

  • Guest
MTG-like card game
« Reply #44 on: January 20, 2008, 08:41:00 am »
0.12345678->A
seq(int(10fpart(10^(B)A)),B,0,7->L1

this creates the list {1,2,3,4,5,6,7,8}

you may want to look up what seq( does, since its a really usefull function