Ok hello all, im a beginner BYOND coder, so my question should be easy.
How do you change the rate that something happens?
For example say if i had a "train" verb, for a game, and the more you trained..say the higher your strength got?
Also, is there a way to create files in the resources?
For example, i recently made a code in which when a player opens the door, a sound plays.I lost it but the basis of the code was:
usr << Sound('')
However it would freeze either the player or the whole game up, im not exactly sure.
And also last, i also forgot how to even put sound files Dream Maker....so ya....
Please reply.Thanks.
ID:158175
![]() Oct 16 2009, 12:43 pm
|
|
Screwing around with adding/removing verbs is just annoying and ugly. Simply lock it out for half a second if you really need to.
Ideally, you'd just fundamentally have a system where mashing the same command ad nauseum is not beneficial. |
Lol,ok. Thanks you both.
But uhm...now i'd like to know how you would go about adding percents. Such as,let's say i wanted the play to train until their energy was at about 5% of it's original value, which im gonna say was 100%. |
Ok the putting the soudn file into the folder with the environment, and such didnt work. Because it didnt show up,does it have to be a specific format?
|
eg:your making a game "hi, im paul" it would be on your desktop, put the file into the "hi, im paul" folder
and use it in your coding somehow
eg:
and it gets added to the rsc.
Same thing goes with sounds except using icon with a sound is asking to have a blue-screen :P
now for your train you would need to make a few variables.
You also need to define a verb so that we can train
you also need to increase your strength in that verb
then, since you want a rate......