ID:179521
 
How do you make it so something happens so many % of the time.
What all does var/savefile/F = new("[M.ckey].sav") save? like does it save the
mob
var
HP=0
t=0
P=0
a=0
stuff?
What is a good site to get sounds like beeps and honks and stuff =P
How do i make it so only so much letters can be in one line of text?
How do i set macros from in the game?



um, I would like to know what to look up on most of that stuff, but i would like an answer for the savefile question plz
dbz73 wrote:
How do you make it so something happens so many % of the time.

DM has a nifty prob() proc for this:
if(prob(60)) // 60% of the time, do this:
usr << "Yes"
else
usr << "No"

What is a good site to get sounds like beeps and honks and stuff =P

Been a while since I've checked it in depth, but the best sound effects site I found was this:

http://www.flashkit.com/soundfx/

They have a very good selection of sounds, all free.

How do i make it so only so much letters can be in one line of text?
if(length(line)>200)
line=copytext(line,1,201) // only use the first 200 characters

How do i set macros from in the game?

Been a while since I've tried to mess with this, but I believe it's something like:
client
macro
....

The reference has more information, though I think it's a little sketchy in that regard for beginners. Shadowdarke would be a good person to ask, since he uses macros extensively in Tanks.

Lummox JR
In response to Lummox JR
Lummox JR wrote:
dbz73 wrote:
How do i make it so only so much letters can be in one line of text?
if(length(line)>200)
> line=copytext(line,1,201) // only use the first 200 characters


thanks for your help, but what i wanted is like after 100 letters, it goes to a new line.

and one more question. how do i get it so when someone presses enter, the chat thing pops up. :P i know its a macro but whats its name for enter lol