ID:166163
 
--built? I have two icons, onewall and twowall.
Squeegy wrote:
--built? I have two icons, onewall and twowall.

You'll want to modify the New() function, which gets called when something is created. In this New() function, you'll want to assign the icon to a randomly selected icon file. Look up the pick() proc in the DM Reference(can be found on this site or by pressing F1 in Dream Maker).

Hiead
In response to Hiead
What New() function?

What pick() proc?

What the heck are you talking about?
In response to Squeegy
mob
verb
chooseicon()
usr.icon=pick('onewall.dmi','twowall.dmi')
In response to Xx Dark Wizard xX
Xx Dark Wizard xX wrote:
mob
verb
chooseicon()
usr.icon=pick('onewall.dmi','twowall.dmi')

That won't work.

1. You're not supposed to control it.
2. That would change YOUR icon.
In response to Squeegy
Compact View | Expanded View

Home
Foreword
Preface

Chapter 1. Meet the Dream Maker
Chapter 2. Navigating the Code Tree
Chapter 3. Objects in the Tree
Chapter 4. Verbs
Chapter 5. Variables
Chapter 6. Procs
Chapter 7. Predefined Object Procs
Chapter 8. The world Data Object
Chapter 9. The Client Data Object
Chapter 10. Lists
Chapter 11. User Input/Output
Chapter 12. Savefiles
Chapter 13. Realtime Events
Chapter 14. The Map
Chapter 15. Text Manipulation
Chapter 16. Mathematics
Chapter 17. Server and System Control
Chapter 18. User-Defined Data Objects
Chapter 19. Managing Code in Large Projects

Appendix 1. DM Compared to Other Languages
Appendix 2. Pre-Defined Object Tree
Appendix 3. Supported HTML Tags
Appendix 4. DM Script
Appendix 5. Addendum for BYOND 3.0

Glossary


Yes, I'm very enthusiastic to start searching every one of those for my code snippet.
In response to Squeegy
I didnt know what you were talking about then.
In response to Xx Dark Wizard xX
When the wall is built, it will choose a random one of two icons.
In response to Squeegy
Squeegy wrote:
Yes, I'm very enthusiastic to start searching every one of those for my code snippet.

[link]

As for your statement, you've completely mistaken the concept of programming. You don't pull in code snippets from as many resources as possible. You learn how to program, and you make your own snippets for yourself. The DM Guide will teach you how to program.

I'm less enthusiastic to help someone who's looking for people to spoon-feed him code than you are to read that. However, I am very enthusiastic to try and get you to learn how to program properly.

Hiead
In response to Hiead
Hiead wrote:
Squeegy wrote:
Yes, I'm very enthusiastic to start searching every one of those for my code snippet.

[link]

I don't see what talking to furniture has to do with what I'm asking about.

Anyway, I'm gonna try something out.
In response to Squeegy
Squeegy wrote:
Hiead wrote:
Squeegy wrote:
Yes, I'm very enthusiastic to start searching every one of those for my code snippet.

[link]

I don't see what talking to furniture has to do with what I'm asking about.

Now we're in the same boat. I don't see how the post at [link] has anything to do with the one at [link], which is the post you replied to. The point of that was to point out how you should make some effort to reply to the posts you are responding to.

Anyway, I'm gonna try something out.

I surely hope this 'something' is to try and learn the programming language, the correct way.

Hiead
In response to Hiead
Hiead wrote:
Squeegy wrote:
Hiead wrote:
Squeegy wrote:
Yes, I'm very enthusiastic to start searching every one of those for my code snippet.

[link]

I don't see what talking to furniture has to do with what I'm asking about.

Now we're in the same boat. I don't see how the post at [link] has anything to do with the one at [link], which is the post you replied to. The point of that was to point out how you should make some effort to reply to the posts you are responding to.

I was replying to both your posts.

Anyway, I'm gonna try something out.

I surely hope this 'something' is to try and learn the programming language, the correct way.

Hiead

Sorry. This 'something' is going to be snippiting.
In response to Squeegy
Squeegy wrote:
I was replying to both your posts.

But the post you actually replied to was your own.

Sorry. This 'something' is going to be snippiting.

Well, I pity you, then. You won't get very far doing that.

Hiead