|
Post by missrinrin on Jan 5, 2015 16:50:11 GMT
Maybe I shouldn't have made whole thread about it, but alas, I'm kinda stuck. I just have a few questions regarding Mystery Script that I'd most appreciate an answer too. I've read and re-read all the guides and yet I still find myself unable to figure out, possibly basic stuff, I'm a bit on the slow so, hence this thread. Art is more my fort, not codes. >.< If someone is willing to answer my questions, could you provide a brief example or like... a step-to-step guide. Anyway, the questions I have are:
"How to make a Verb to toggle someone between invisibility and visibility?"
"Verb to allow someone to change appearances (Icons) to and fro?"
"How to make a Projectile... a.k.a an object flying towards another character, something like a bullet?"
I have more, but they've kind of slipped my mind, they've probably already been answered before but I'm unable to find them, so sorry beforehand. Again, any answer would be most appreciated as I'm stuck looking at these codes, not understanding a single thing. Thanks again. xx
|
|
|
Post by Kamuna on Jan 5, 2015 22:20:45 GMT
Since verbs are a bit advanced, due to the way BYOND is set up (doesn't let you make real verbs at runtime so I had to work around that), I suggest you make Doppelganger mode (Advanced Tutorial) before getting into things like that. Second, apologies that there aren't more guides available right now (I'm working on it), but you should be able to infer what each function does by going to the Features, Functions, and Variables thread. The second question is kind of touched on in Doppelganger mode as well, but it is a hidden overlay instead. set_icon will do what you want, once you know where to put it. As for a projectile, the create functions will do what you want, so long as you program the behavior for the projectile. If you are an artist and not a programmer, I suggest you wait for the Mystery GUI or take up some programming in other languages before going onto Mystery Script. There you can find more guides on basic programming, which will help you with Mystery Script as well, while the Mystery GUI is more like RPG Maker where you basically click to make events happen. This will be catered to the general audience rather than just programmers, but again, I've been busy, especially with Kosei Online, so development for it has been slowed.
|
|
Shi Musume
New Member
I do not care what you think. All I want is rules to be followed, to help people, and have fun.
Posts: 42
|
Post by Shi Musume on Jan 9, 2015 17:15:43 GMT
I'll help you out. First I will focus on projectiles. In this, I will show a basic code I have made to toss a simple fireball which the killer can do. pastebin.com/ze0MG7pb-Once you read that you will be able to make projectiles. Now for invisibility toggling, a fairly easy code/ verb. pastebin.com/VdiAf8eWI hope you take this information to make great modes in the future! And also, read up on the full function list, along with double checking game guides, but I am willing to help on the way if you have questions regarding your mode! (I know I needed help for some of my more advanced coding.)
|
|
|
Post by Kamuna on Jan 10, 2015 0:39:59 GMT
It's more efficient these days to put those into functions and just call the function for the verb, instead of a separate file. Other than that, good job, even though shooting doesn't really call for spawning an entire weapon, just an object. I guess since native loops can be faster than MS loops, it may be a better idea, now that I think about it. Just initialization would be slower, though, so it depends on how long the fireball is out to see if it is worth it.
Also, for the icon portion, it's just like the invisibility code, except that you'll need to store the player icon somewhere globally, like an MSTag, and then use set_icon instead of invisibility to switch between your custom icon and the normal icon.
|
|
|
Post by missrinrin on Jan 10, 2015 16:21:30 GMT
I'm starting to understand it more little by little, thank you so much guys for the help and getting back to me so fast, it really has been a big help. ^_^, If I've more questions, I'll be sure to post them... they keep slipping my mind every time I try to think. Anyhow, thank you ever so much. :3
|
|
|
Post by Egil on Jan 22, 2015 22:13:14 GMT
Since I'm not a programmer, being shown actual code along with an explanation would be awesome ( Kamuna)
|
|