Simulating spells via progs

For builders to discuss and ask building questions.
Post Reply
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Simulating spells via progs

Post by Xryon » Sun Feb 01, 2015 7:04 pm

Hello everyone!

I'm currently experimenting with some of our prog capabilities, specifically oprogs for this issue, and have met with some difficulty. Hoping someone with more knowledge of our system can help me out.

Basically, what I'm trying to do is use an intercept prog to add and subtract certain values from the PC, using value5 to note charges. Charges refresh automatically at the start of each day.

The issue I'm having is that I can't seem to find a way to actually track the passing of time, which is necessary to trigger the wear_off of the modifiers. I feel like I'm missing something really simple, as I know I've accomplished similar things in the past, but it currently has me stumped.

Thanks for the help!
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Re: Simulating spells via progs

Post by Xryon » Sun Feb 01, 2015 8:38 pm

I didn't think about it until after I posted, but... could I actually just use a pause to accomplish this?
User avatar
Harroghty
Staff
Staff
Posts: 9695
Joined: Tue Jul 27, 2004 5:38 pm

Re: Simulating spells via progs

Post by Harroghty » Sun Feb 01, 2015 10:50 pm

Hm. So you can use value5 as the charges of the device: subtract from value5 when a charge if used (mpoadd $o value5 -1) and then add charges back daily, for example.

To add charges back daily:

Code: Select all

>time_prog 5~
mposet $o value5 2
mpechoat $n {E0}Your ring glows briefly.
~
|
"A man may die yet still endure if his work enters the greater work, for time is carried upon a current of forgotten deeds, and events of great moment are but the culmination of a single carefully placed thought." - Chime of Eons
Xryon
Sword Master
Sword Master
Posts: 233
Joined: Thu Aug 25, 2005 5:24 am
Location: Waterdeep

Re: Simulating spells via progs

Post by Xryon » Sun Feb 01, 2015 11:03 pm

Yeah, I got that part down. My issue was that I'm using the intercept to mpadd, and wanted to use a timer to determine the mpadd -. I think i've figured out a way to do it, just have to do some testing.
Post Reply