Day 3
Yikes, I'm starting this episode rather late. In my last post, I made a map and fixed my first error. That's about it. I'll save the play-by-play and hop right into it this time.
A variable is a place where a tidbit of data is stored. It's called a variable because we can change it at will, so the info it holds can vary.
Awesome. I want you to be a Coca Cola bottle.
...
You suck. Hey, he's giving me more code! *Nab*
var
HP = 30 //declares a new variable called HP, with a value of 30
---
loading Best Tutorials For a.dme
Best Tutorials For a.dm:21:error:var :invalid variable name: reserved word
Best Tutorials For a.dm:21:error:HP:undefined var
Best Tutorials For a.dm:18:error: /turf/grass: bad turf
Best Tutorials For a.dmb - 3 errors, 0 warnings (double-click on an error to jump to it)
I read on and Zilal says it has to be under mob and the "icon" line. Thanks for telling me this AFTER you type up the code! Sheesh. I moved it and it's fine. Now when you log in, you have 30 HP! I was so excited, I logged in straight away and was disappointed to find out that I couldn't hurt myself.
This is the part where I get really really bored and decide for myself that I've advanced past Zilal's Tutorial. Time to hit the demo archives! But what should I try out first?
Explosions by Sariat
Code Snippet on how to make explosions!
Explosions are AWESOME. I open it up and HOLY SMOKES the demo is bigger than my entire game! It's about twice the size! You move the guy around, click the Explosion verb, and boom! A 3x3 blast with you in the center. 5x5 if you click the Big Explosion verb. But I don't want this as my main method of attacking someone. I'll come back to it later.
s_missile by Spuzzum
The s_missile library is a projectile system that is designed to be a supplement to the BYOND-provided missile() proc; if you have any projectiles or graphical effects, use this to shoot them!
This looks bette-AAAH this is almost as big as the other one! Let me find something else. Something smaller.
Projectile Demo by Soccerguy13
A demo that shows projectiles
Now that's more like it. Only 16 total lines. I "borrow" it and try it out.
Oops! I need an icon for it. What should I use...
You know, I really don't know what I should use. I really could use some help! This icon isn't going to make itself! (HINT HINT)
ID:14442
![]() Jun 28 2006, 3:36 pm
|
|
![]() Jun 28 2006, 4:23 pm
|
|
Oh! Oh! Shoot someones avatar at them!
|
http://members.byond.com/images/male_member.gif
Just use the icon editor's built in rotate function to get the other directions. It's iconic, stolen, and best of all, pointy. Projectiles should be pointy. |
http://members.byond.com/JustinKnight/files/chicken_head.PNG
Because chicken heads pwn hard as projectiles. |
You can use the Proelium fireball graphic but you have to give me GM or I'll tell Dantom and get you banned lol.
|
O! This one doesn't have the box around it:
http://byond.com/images/male.gif You could use the male one for Kamehameha, and the female one for fire jitsu! http://byond.com/images/female.gif |