Thread: vBTripleTriad
View Single Post
  #73  
Old 08-23-2005, 01:03 PM
Darkwaltz4's Avatar
Darkwaltz4 Darkwaltz4 is offline
 
Join Date: Oct 2002
Location: Chicago
Posts: 1,538
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

user shops: not sure how needed this one is, the only difference being someone can POST the amount they wish to offer a card for...if this is the case then i would need more slots for data. right now when someone who isnt you views your inventory, they can select some of your cards, and offer you points for them, and you accept/deny. basically this is what would happen in a user shop anyway, so this idea needs some thorough explanation

all the new rules should be feasible to some extent
Note for minimum:
I left this out because i figured why would someone complain if their opponent chose sucky cards? Just an easy win. Also, when you choose reverse, the card cap becomes a level minimum already

different board sizes would require an enormous recode. everything from the rulecheckers to the ai to the saving system, depend on everything being nine slots. now, the rulecheckers and the ai have a set of directions they can read from, but i dont know the extent of changes this would require

same thing with multiple players, and yeah figuring out a winner system would be considered a challenge :-p

There is a way to add new elements, as i decided against a formal method of it before, simply because there was no need to
Code:
1) create your image, in a large format in the middle of a clear gif 105x130. (For examples, look i your images/triad/elements folder)

2) SELECT MAX(element) FROM triad_card

3) Add 1 to this, and make that the new name of your element, remember what it was, and put the image in with the other elements. If you never added elements before, this number would be 9.

4) In include/functions_triad.php find:
'8' => 'Holy'
add after it
, '#' => 'NewElementName'

Noting the comma. # is the number you named the element

5) Create your card as usual, and select the new element for it. The game will take care of the rest :)
Well, I could possibly allow you to specify a source directory, but there is really no way around at SOME point you having to go through each and every image to do something. simply because php cant read what are on images, so you would have to do that yourself. Also the cardid isnt known until the card is actually saved in the database, so it wouldnt know which image belongs to which cardid after the fact. To make it easier for the system to recognize the connection would STILL require you to have previously gone through and say named each image as something indentifyably different :-p
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01210 seconds
  • Memory Usage 1,766KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete