Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rkynick

Pages: 1 ... 237 238 239 240 241 [242] 243 244 245 246 247 ... 411
3616
Modification Help / Re: Adding ratio to dice game script
« on: August 06, 2008, 02:13:15 AM »
What was the error? its kind of important, you know...

3617
Modification Help / Re: Adding ratio to dice game script
« on: August 06, 2008, 01:12:19 AM »
So it works and everthing, but i want it to do 1 more thing. Make it so it shows the ratio you won over what you lost. Example: Lets say i won 4 times and lost 6, Iwant to type /ratio and it will say 4/6. Not asking for you to just give it to me. Just a breif explination on how to. Well anyway here is the script thus far:
Code: [Select]
function servercmdrolldice(%client) 

{   
  %diceroll = getRandom(1,6);
  if(%diceroll >= 3)
{
messageclient(%Client,""," Sweet I rolled a "@%diceroll@" and won!");
        %client.Dice_game_wins+=1;//add 1 to their win count
}

else
{

messageclient(%Client,""," stuff I rolled a "@%diceroll@" and lost!");
        %client.Dice_game_loses+=1;//add 1 to their lose score
}

}

function servercmddiceratio(%client){
        if(!%client.Dice_game_wins){%client.Dice_game_wins=0;}//if they have no wins, set it to 0 so it doesnt say /3 or something
        if(!%client.Dice_game_loses){%client.Dice_game_loses=0;}//if they have no loses, set it to 0 so it doesnt say 3/ or something
        messageclient(%client,'',"Your dice game ratio is" SPC %client.Dice_game_wins @ "/" @ %client.Dice_game_loses @ ".");
}


Basically, we assigned the client a Dice_game_wins variable and a Dice_game_loses variable. When they win, we add one to the wins variable, when they lose, we add one to the loses variable.

%client.<namehere> Variables are attached to the client, and can keep track of things over time that are specific to that person. An example is %client.name, which stores the client's name.(try adding messageclient(%client,'',%client.name @ ", you suck!"); at the end of the roll dice function for an example of using %client.name)

Another example that you will probably use a lot is %client.player, which is the clients player object(their blocko minifigure). For an example of using this, try
Code: [Select]
function servercmdLocate_Me(%client){
             bottomprint(%client,%client.player.getposition(),2);//show them their position
}
That'll show the client their player's position using the function getposition( player.getposition(), outputs the playerobjects X Y Z(i.e "3.4 84 102"))

There are a lot of good player.<functionname>() functions that are fun to screw around with.
Try
player.setvelocity(X Y Z)(try "0 0 100")
player.kill() (what do you think?)
player.setshapename("name") (change the name that appears above your head, try "!!" @ %client.name @ "!!")

etc. etc.

Wow I really got off track there.

Anyways,
when they say /diceratio, we send them a message telling them their wins / losses.


Ideas for expansion:(you should try these)
+Make it also track %client.dice_game_count for how many times in total they have played, and make a /dicetotal to see that.
+Add a /cleardicerecord so they can clear their wins and loses.
+keep at it damnit

3618
Games / Re: Moola-New game site that gives you money.
« on: August 05, 2008, 11:29:08 PM »
I'm sorry Dr Tails D:

It would be harder to convert dollars into euros because euros are so much higher in value right now.

3619
By the gods! Swarms of flys are ravaging our food stocks, so I am getting our carpenters to mass-produce barrels to avoid further nonsense.



The wall is coming together nicely, now I have the bridges set up(as the gates). When set off by a lever, the bridges will pull themselves upwards, forming a wall that will protect our workers from crossbow bolts.(think drawbridges)

I hope to have that wall done by mid-summer.

The treasury is finished, and just in time too. We discovered glorious rubies, in the same area where we discovered sapphires as well!(I was having the miners carve out new rooms for the immigrants)



It appears our wood-cutters are bored, can't blame them, I haven't given them anything to cut down. So I mapped out a large area of forest to be cut down, hopefully our wood stocks will grow enough to last us in case of siege.



The Queen's quarters are almost finished, we are furnishing and smoothing them currently.



Whats this? A peasant, Lolor, has been very secretive as of late, and now she has taken over a craftdwarfs workshop!

We can only wonder what she might come out with...


Lolor has emerged after many days & nights with Ekastamid, an impressively crafted turtle shell chain! Lolor has claimed the title of legendary bone crafter with this artifact!





The human caravan arrived today, and the Queen herself honored them with her presence!

Hopefully they will have more to trade than the stupid elves.



Its harvest time! A great crop of sweet pods and a secondary crop of plump helmets came in today.

We will brew the sweet pods and store the plump helmets.




The humans did have some good trade items! And through some crafty trading I was able to get us 200 meatstuffs and 90 fishstuffs.
I also got us a cow cage, hopefully we can begin breeding cows for our own meats.

3620
Maybe, but for now I need them working on the wall.

3621
Gallery / Re: Giant Carrot
« on: August 05, 2008, 09:21:23 PM »

3622
Okay then.



The queen & the wave of immigrants arrived, we now have

  • A bowyer
  • 4 peasants
  • A woodcrafter
  • A glassmaker
  • An animal dissector
  • A Potash Maker
  • An armorer(good, we will need well armored troops to protect the queen(or rather, protect the rest of us from the queen))
  • A mason! Now my wall will be built quicker!
  • A Siege Operator! Now CloisterCrush's catapults might actually hit something!
  • A weaver
  • A mechanic.

-- My miners just had to inform me of the discover of tetrahedrite while I was taking role call --
  • A woodcutter
  • An engraver.
  • A hunter, he will be very useful to me.
  • A stoneworker, good, more people to construct our walls!
  • A stonecrafter


They also brought a pet
1 Cow calf


Now our fortress can support a sheriff, I think I will make the head of our military sheriff.

We now number 35. I plan to put a few peasants on farming, and the rest will become militants. The potash maker and weaver will farm as well. We have many more mouths to feed.

I will take our farmers off engraving duty, and our mason and metalworker will be taken off siege operating in favor of the skilled operator. Other than that, everyone will get to work.



Suggestions anyone?



edit




The fortress is now running fairly smoothly, but I still need to carve out some more rooms for the new dwarves.


Our Queen seems to be very pleased with our work here-- she has been patiently exploring our fortress, admiring our craftsmanship while we carve out her royal quarters.

Our new recruits have quickly taken to wrestling and our farms are running better than ever.


The wall is nearing completion with the first layer about halfway done, and our treasury is almost finished.

I will sketch out what we have planned for the royal quarters soon, for now there is much more work to be done.


Off topic notes: Wait what? The queen is unbelievably agile and superdwarvenly tough? It's super queen!

3623
Games / Re: Moola-New game site that gives you money.
« on: August 05, 2008, 07:39:10 PM »
The trick is to cash out once you reach $1-$2, then just let it build up, and get your check.

3624
Modification Help / Re: amiBot - the collaborative bot.
« on: August 05, 2008, 04:57:12 PM »
No, all I know is that its a bot of some sort. No other information(i.e, what kind of bot?) was given besides "YOU CAN MAKE MODULES!!!"

3625
Modification Help / Re: amiBot - the collaborative bot.
« on: August 05, 2008, 04:01:11 PM »
Yey for absolutely no information given.

3626
Oh goodie, I get to be sweared at for keeping my logs nice and organized.

Perhaps I'll just do this


day whatever

Stuff happened.

waaaalllls
WALL ALMOST DONE
that is- -0- A
  - - -- - -- -L
- -- - -- --- L




3627
Games / Re: Dwarf Fortress
« on: August 05, 2008, 02:36:23 AM »
Holy crap, CloisterCrush(see the topic) became a mountain home.


Wut do I do? :O

3628
Games / Re: Mechscape
« on: August 05, 2008, 01:13:44 AM »
Randomly dropping the F-bomb is loving cruise control for forgetity loving cool! Don't be square, be forgetity forget on a loving stick with forget on top!

3629
Ah, I see. Theyre both working on my wall.


Also, how do you guise like my logs so far?

3630
Drama / Re: Hate Mail: MY THOUGHS ON YOUR GAME
« on: August 05, 2008, 12:35:42 AM »
So we're going to run from NJ  all the way across the country to where badspot lives?

Pages: 1 ... 237 238 239 240 241 [242] 243 244 245 246 247 ... 411