Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Arcath
Beginner


Joined: 17 Aug 2001
Posts: 11
Location: Japan

PostPosted: Wed Jul 07, 2004 1:52 pm   

how can i set this up?
 
i want to keep casting a spell to improve it, then sleep when im out of mana, and wake to start this over again.

sorry if it seems noobish, but i have no idea how to do this.

can anyone help?

thanks
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jul 07, 2004 2:34 pm   
 
1. Make a trigger to track your mana (#TRIGGER). When your mana drops below the point where you want to sleep (#IF), disable your casting script (#T-) and sleep. When your mana is back to where you want to resume casting (#IF), wake and enable your casting script (#T+).

2. Make a script to cast the spell repeatedly (#ALARM or #TRIGGER). It's generally a good idea to include an easy and quick method of disabling the script.

3. You probably hoped someone would actually write the script for you, but that's impossible since you didn't provide any of the details which would be needed.
Reply with quote
mr_kent
Enchanter


Joined: 10 Oct 2000
Posts: 698

PostPosted: Wed Jul 07, 2004 2:37 pm   
 
You won't get a reasonable response without providing much more information.

Your post is akin to:
"I want to go to the closest shoe store, but I have no idea how to do this.
can anyone help?"

At least show us what you see when you do this without using a script.
Reply with quote
Arcath
Beginner


Joined: 17 Aug 2001
Posts: 11
Location: Japan

PostPosted: Wed Jul 07, 2004 10:34 pm   
 
actually i didnt want someone to do it for me, i just wanted to know where to start. i made 5 triggers as you sugested. My prompt is as follows.

73/73HP 35/213MP 186/186MV
911TNL 23S 5452G

Trigger pattern : 213/213MP
Value : wake; cast 'cure light'

Trigger pattern : You don't have enough mana.
Value : sleep

Trigger pattern : You feel better.
Value : cast 'cure light'

Trigger pattern : You lost your concentration.
Value : cast 'cure light'

Trigger pattern : You are thirsty.
Value : wake; dring flask; sleep;

It works kinda, i sleep till my mana is full, wake up cast the spell till my mana is drained, sleep, rinse, wash, repeat. what i dont understand is what you mean by the #T- and #T+.

Is there a way i can clean this up, make the code more neat or put all this into one trigger or macro or something? I took a couple programing courses in college, so im just tring to learn all this stuff again.

Thanks for helping me get started LightBulb.
Reply with quote
jessew
Apprentice


Joined: 03 Mar 2003
Posts: 141

PostPosted: Thu Jul 08, 2004 12:09 am   
 
#T- , #T+ is used to disable / enable a class or a setting with an ID , in your case, for example you'd want to use them to disable your mana trigger while your casting and to turn them on before you sleep to prevent the trigger from firing at the wrong time. The way your going about it now seems the most efficient, probably want to put the entire script in its own class so you can shut it off and on easily with the T+ T-.

Cheers
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net