For builders to discuss and ask building questions.
-
Argentia
- Sword Grand Master
- Posts: 357
- Joined: Fri Jul 23, 2004 4:31 am
- Location: The City of Splendors
-
Contact:
Post
by Argentia » Wed Sep 03, 2008 10:13 pm
I coded a mob a while back before the saves were implemented. I used if less than conditions with stats to simulate saving throws. But now that saves are implemented obviously my ragtag method is obsolete. That said, I don't quite get what needs to replace what in my code to properly work the saves. For example here is a program I designed to simulate paralysis on a failed "will save":
Code: Select all
>fight_prog 50~
if quest(11, 1, $n) == 0
if wis($n) < 7
mpechoat $n You suddenly find yourself unable to move!
mpechoaround $n $N suddenly freezes in their tracks!
mpaffect paralysis $n
mpmset $n quest 11 1 1
else
if wis($n) < 9
if rand(75)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 11
if rand(60)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 13
if rand(50)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 15
if rand(40)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 17
if rand(30)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 19
if rand(20)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
else
if wis($n) < 23
if rand(10)
mpechoat $r You suddenly find yourself unable to move!
mpechoaround $r $R suddenly freezes in their tracks!
mpaffect paralysis $r
mpmset $r quest 11 1 1
endif
endif
endif
endif
endif
endif
endif
endif
endif
~
The theory behind it being the lower your wisdom, the higher the rand chance that the paralysis works. How would I update this program to reflect the new saving system?
Do not meddle in the affairs of dragons, for you are crunchy and go well with ketchup.
-
Enig
- Sword Grand Master
- Posts: 787
- Joined: Wed Dec 20, 2006 5:28 pm
- Location: The Frozen North (Canada!)
Post
by Enig » Thu Sep 04, 2008 2:25 pm
I don't think that if checks for the saves have been built in yet, but they were definitely in the works. This is a link to the last thread I saw on the subject
http://www.gallwey.com/fk/board/viewtop ... f=5&t=8296
-
Argentia
- Sword Grand Master
- Posts: 357
- Joined: Fri Jul 23, 2004 4:31 am
- Location: The City of Splendors
-
Contact:
Post
by Argentia » Thu Sep 04, 2008 4:27 pm
So... Saves are in the game, just there's no way to force a saving throw? Should my prog stay the same then? Or is a save automatically attempted upon the mpaffect paralysis $n?
Do not meddle in the affairs of dragons, for you are crunchy and go well with ketchup.
-
Enig
- Sword Grand Master
- Posts: 787
- Joined: Wed Dec 20, 2006 5:28 pm
- Location: The Frozen North (Canada!)
Post
by Enig » Thu Sep 04, 2008 6:06 pm
I'm kind of guessing here but I'm going to say that I think save checks would be packaged with mpaffect. Based on the line in the lesson file...
'This will cast a spell without echos. There is no chance of failure but there is a chance for resisting the spell. This is ideal for when you want to have mobiles who have special attacks that are fire based etc, allow for resisting.'
It sounds like it just casts an echoless spell at the victim, so I think the spell would function regularly and have save checks built in. On the other hand, I hope you don't mind my throwing out a question of my own, but I'm kind of curious how the strength of spells cast by mpaffect is determined. Thanks
-
Dalvyn
- Sword Grand Master
- Posts: 4708
- Joined: Tue Jul 15, 2003 9:26 pm
- Location: House of Wonder, Waterdeep
Post
by Dalvyn » Fri Sep 05, 2008 4:35 pm
I don't know if save checks have already been coded or not... the best you can do is try to get a hold of Mask online and ask him.