ID:158750
Jul 5 2009, 10:06 am
|
|
I was wondering if its possible to enable a set of macros when a verb is executed and disable it when another verb is executed and there are other verbs which are able to enable/disable more sets of macros. If its at all possible then can someone show me how?
|
In response to Satans Spawn
|
|
With the addition of interfaces to 4.0, it is a much safer/better/smarter option to input the macros via the interface. You might want to look it up =).
|
In response to Demon_F0rce
|
|
Demon_F0rce wrote:
With the addition of interfaces to 4.0, it is a much safer/better/smarter option to input the macros via the interface. You might want to look it up =). Where would I look it up?, sorry if this seems like a silly question xD |
In response to Proto100
|
|
http://www.byond.com/members/ DreamMakers?command=view_post&post=33352 For the skin information, as well as the Skin Reference located... Somewhere XD.
http://www.byond.com/members/ DreamMakers?command=view_post&post=34405 For the macros information. The second link is just lesson 4 of the first. |
In response to Demon_F0rce
|
|
Ok well..I gave it a look but I'm having trouble switching between a set of macros. This is how I attempted this, I made a proc that looked like this:
The Lancelot is basically the name of a robot that a player will be able to pilot. So then I made a verb for piloting that robot and having that verb executes the Lancelot proc and I'm trying to switch the macros the players have now to a new set of macros that's specifically made for piloting the robot, and then I have a verb to unpilot the robot and executes the proc UnpilotLancelot which is suppose to remove the Lancelot(robot) macros and restores the player default macro list and here is what my interface file looks like: Basically I want to switch between the list of macros titled "macro" to the macro list titled "Lancelot" at some point in the game when a verb or when a proc is executed whichever works and then from the "Lancelot" back to the "macro" I'm pretty sure I'm doing something wrong in the winset()but I don't know where =/. So..any ideas? P.S If anyone is wondering why I have 2 menus one named "menu" and the other "menu1" it was an accident, I pressed "New menu..." so basically just ignore that "menu1" part I'll delete it after |
In response to Proto100
|
|
Wow. Notice any similarities between the proc and the command you're trying to call? You're using both wrong.
//From the DM Reference(F1 in Dream Maker): |
I think that is how you define macros, it has been a long time since I have made one. If I did that right, then that would be the same as calling src.myproc(1). I have also made myproc a little versatile in the sense that it can be called via macros, and then do the check, or on its own without the check. To call it without the check, you would just need to type src.myproc() or src.myproc(0)
That's about the only way I can think of to do this off-hand. Hope it is what you meant.