Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ Boost a mobs "power"
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Sun 02 Jan 2005 05:43 AM (UTC) Amended on Sun 02 Jan 2005 05:53 PM (UTC) by Zeno
|
Message
| After placing a shard on a mob, I want to boost the mobs "power" (its strength or whatever) by 2x. This is what I have done:
vch->hitroll *= 2;
vch->hitroll *= 2;
vch is the mob. But it doesn't seeem to change the hitroll or damroll. Is something being done wrong? What else could be changed to make it stronger?
Example, this mob has a shard, so it should have 2x hr/dr.
Hitroll : 10
Damroll : 28
So I minvoke a normal mob of the same vnum, that has no shard.
Hitroll : 10
Damroll : 28
That's what I mean by it not working. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Sun 02 Jan 2005 06:21 PM (UTC) |
Message
| I beleive that hitroll and damroll are also calculated above their base through the GET_HITROLL macro, might want to look at that. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #2 on Sun 02 Jan 2005 06:32 PM (UTC) Amended on Sun 02 Jan 2005 06:42 PM (UTC) by Zeno
|
Message
| Ah, that is why, I forgot about that. I could add an affect... but I haven't figured out how those work yet, in the code. Like if I wanted to add 2 affects, one doubling hr, another doubling dr, lasting until death, how would that be done? (For the double var, I just would grab the curr hr/dr and have the affect add that var)
[EDIT] If just did perm_con, perm_str, and perm_dex 2x, would that be fine? As in, it wouldn't modify the original index mobs stats? Not using ->pindexdata |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #3 on Sun 02 Jan 2005 07:30 PM (UTC) |
Message
| That'd work, except that you won't always get an increase by two times. The stats are capped, unless of course you removed that.
For adding an effect, I suggest looking at how some races are given permanent effects such as detect magic or infravision. You'd do something rather similar, and attach something like that onto your mob. |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Sun 02 Jan 2005 07:33 PM (UTC) |
Message
| Stat cap is basically removed. (its at 1000).
I've looked over some examples a while ago, but I really don't get some of it. I'll post a new topic if I can't figure it out. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,109 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top