Thread: screwy stake
View Single Post
  #11  
Old 08-17-2007, 05:35 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Best way is to do something like...
PHP Code:
function onTimeout() {
  
player.chat=tiles[mousex,mousey];
  
setTimer(0.05);

And basically it's all logic from there
PHP Code:
temp.staketiles={blah,blah2,blah3,blah4}; // the four tiles for the stake
temp.downstake={blah,blah2,blah3,blah4}; // the four tiles for the stake
if (tiles[player.x,player.yin temp.staketiles) {
  
tiles[player.x,player.y]=temp.downstake[0]; 
  
updateboard(player.x,player.y,1,1);

Of course, it's more complicated than that, but you get the idea. tiles[x,y] will tell you the tile hexcode at the given coordinates, and you can also change them like so. Also, the editor will give you the hexcode of all highlighted tiles when you press the one button that looks like a circle with a + going through it.

Early apologies for the sloppy instructions, if you need something more in-depth I can do that. But hopefully this is enough to get you started.
Reply With Quote