SphereCommunity
Origin of Spell Checking & Unidentified Attrib - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Origin of Spell Checking & Unidentified Attrib (/Thread-Origin-of-Spell-Checking-Unidentified-Attrib)



Origin of Spell Checking & Unidentified Attrib - snoozed - 05-08-2017 10:55 AM

Hello, anyone know where I can find the following:

- Where is spell checking happening? IE. No regs, spell not in spellbook, no spellbook, etc?

- Where the Unidentified attribute is defaulted to wearable items




Thanks Smile


RE: Origin of Spell Checking & Unidentified Attrib - darksun84 - 05-08-2017 04:40 PM

Most of the checks are hardcoded a part from the "No reagent check" that is handled by a flag in the sphere.ini.
Hovewer you can override almost everything by using the @spellselect/@select trigger

https://wiki.spherecommunity.net/index.php?title=@SpellSelect


RE: Origin of Spell Checking & Unidentified Attrib - snoozed - 05-09-2017 10:05 AM

Hmm.. so you can't replicate the condition in a script (with simplicity)?

What about the Unidentified property, that seems to be declared as the default for items (AOS context menus). Is there a high level function to control this attribute? The other option appears to be adding 'ATTR=identified' to every item.


Thanks


RE: Origin of Spell Checking & Unidentified Attrib - darksun84 - 05-09-2017 06:58 PM

About the identified attr, just create a globale @create trigger with EventsItem and put attr = 01.

The checks i think are replicable


RE: Origin of Spell Checking & Unidentified Attrib - bmanny - 05-10-2017 09:14 AM

ON=@create isn't being overridden for some reason.

// Events related to all items
EventsItem=e_itemidfix

[EVENTS e_itemidfix]

ON=@Create
attr = 01
name = test


this does nothing.

But if I go into the individual item and add
attr = 01
name = test

I get both changes.


RE: Origin of Spell Checking & Unidentified Attrib - Murmur - 05-10-2017 03:30 PM

You must use TYPEDEF instead of EVENTS.

https://forum.spherecommunity.net/Thread-EventsItem?highlight=EventsItem