Reccum Posted March 13, 2010 Report Share Posted March 13, 2010 So I am trying to make an affects list within the client so I don't have to type affects to see what buffs I have up. So far it is easy enough if the spell in question has a unique message when cast or when it drops. I am trying to figure out how to do one for Detect Invisible. Can I add an #if statement to an alias? Since detect invis and detect magic have the same message when cast it will confuse my variables. I want to do something like this: Alias name:di value: cast 'detect invis';#if (Your eyes tingle.) {#var di=1} {#var di=0} This is not working at all. HELP! Link to comment Share on other sites More sharing options...
f0xx Posted March 13, 2010 Report Share Posted March 13, 2010 I've seen this before. A status window up with all your affects showed in it and the time before they fall. Such type of coding is too complexed for me though My suggestion is you time your detect invis and detect magic so they are on the same tick, no need to distinguish one from the other. Link to comment Share on other sites More sharing options...
Reccum Posted March 13, 2010 Author Report Share Posted March 13, 2010 I've seen this before. A status window up with all your affects showed in it and the time before they fall. Such type of coding is too complexed for me though My suggestion is you time your detect invis and detect magic so they are on the same tick, no need to distinguish one from the other. I don't have any idea how to show how much time is left on the spell, my buttons just show up they are up (green) or down (red). Your solution might work, but if they get out of sync it will be all messed up. Thanks though, but I am hoping someone can actually tell me how to use the if in tandem with the alias... Link to comment Share on other sites More sharing options...
f0xx Posted March 13, 2010 Report Share Posted March 13, 2010 I believe you first have to imput the time of each spell and then it removes 1 every time the mud ticks. Zrothum sent me a zmud client once that had this for a BMG, I tried to look at the actual script but it was hard as hell so I gave up Link to comment Share on other sites More sharing options...
Reccum Posted March 13, 2010 Author Report Share Posted March 13, 2010 Ok, I figured it out. Woohoo! Changed the alias so that when I cast detect invis another variable called detects turns to 0, if I cast detect magic, that same variable turns to 1. Then when the message "Your eyes tingle." is displayed, it checks the detects variable to see which affect to toggle. Go me! Link to comment Share on other sites More sharing options...
Sandbox Posted March 13, 2010 Report Share Posted March 13, 2010 if u guys spent as much time playing as you do coding you'd be "L" by now. Link to comment Share on other sites More sharing options...
Reccum Posted March 13, 2010 Author Report Share Posted March 13, 2010 hah, how bout doing both? Anyway this is my first ever attempt at ANY zmud coding beyond aliases. I was reading old threads about the custom affects bar and saw toten and celerity posting about buttons. Now who in their right mind would NOT want to have a permanent affects bar right by the command prompt? :eek: Link to comment Share on other sites More sharing options...
-Totenkopf- Posted March 13, 2010 Report Share Posted March 13, 2010 I wrote that BMG script a long long time ago. Having an ACCURATE indication of hours left on the status bar is basically impossible. You could have it guess and update at any time you typed aff. Link to comment Share on other sites More sharing options...
f0xx Posted March 13, 2010 Report Share Posted March 13, 2010 Nah, mine is different. It has a black status window on the right with all affects and times. Also there is a different window only for tells. I don't really use it since I can't understand a thing and it is set for a bmg Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.