Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Yandex, Google

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,370
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Coding » Affects - Overhauling the sys...
Forum Rules | Mark all | Recent Posts

Affects - Overhauling the system
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2, 3, 4 next >>
Post is unread #61 Nov 26, 2009, 11:44 am
Go to the top of the page
Go to the bottom of the page

Kayle
Off the Edge of the Map
GroupAdministrators
Posts1,195
JoinedMar 21, 2006

Funny Story.

Somewhere along the lines, updating affects to use XBVs broke the sset system.

You can't use sset <skill> affect affected <something> <duration> <bitvector> anymore.

If you do, you end up with some funky ass results. Instead, you have to use sset <skill> affect xaffected <something> <duration> <bitvector> to get proper results. An example.

Log: Kayle: sset acute_awareness affect affected detect_hidden l*10 detect_hidden

Sn: 5 Slot: 0 Skill: 'acute_awareness '
Saves: none SaveEffect: none
Type: Skill Target: self Minpos: 0 Mana: 0 Beats: 20 Range: 0
Flags: 0 Guild: 3 Value: 0 Info: 0 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: You can no longer discern hidden things.

Affect 1 modifies affected by '7' and applies detect_hidden for 'l*10' rounds

Hitchar : You focus your senses on what would hide from you.
Misschar : You are distracted and fail to focus.

<32055hp 30000m 30100mv> <#330>
You focus your senses on what would hide from you.
<snip>
Affected by: blind invisible detect_sith detect_hidden
Skill: 'acute_awareness' mods affected_by by 7 for 2007 rnds with bits detect_hidden.


blind = 1, invisible = 2, detect_sith = 4. 1 + 2 + 4 = 7. And now for the fun part.

Sn: 5 Slot: 0 Skill: 'acute_awareness '
Saves: none SaveEffect: none
Type: Skill Target: self Minpos: 0 Mana: 0 Beats: 20 Range: 0
Flags: 0 Guild: 3 Value: 0 Info: 0 Code: spell_smaug
Sectors Allowed: All
Dammsg:
Wearoff: You can no longer discern hidden things.

Affect 1 modifies xaffected by '7' and applies detect_hidden for 'l*10' rounds

Hitchar : You focus your senses on what would hide from you.
Misschar : You are distracted and fail to focus.

<32055hp 30000m 30100mv> <#330>
You focus your senses on what would hide from you.
<snip>
Affected by: detect_hidden
Skill: 'acute_awareness' mods affected_by by 7 for 2079 rnds with bits detect_hidden.


Knee slapper, huh?

*wanders off muttering about idiots and bad design*
       
Post is unread #62 Nov 26, 2009, 6:34 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Actually I ran across this one long ago when I was redoing some affect stuff (don't recall right off what or when), but I never posted it since I figured it was just some changes I had made lol. I do recall that I ended up doing away with what the old affected did and instead went with what it used for xaffected for the affected.
       
Pages:<< prev 1, 2, 3, 4 next >>