Comments (5)
Because you are using it wrongly, t_multi is become a region after you placed the house, so basically you are trying to get REGION of the REGION? It makes no sense. If you want to save any variable to the region, you need to use REGION.TAG on real region, not the house itself. Or if you want to save a tag on house, you need to use TAG.FORSALE directly instead of calling the region.
For example if you want to add TAG.FORSALE for house multi, you need to use
REF1=<REGION.UID>
REF1.TAG.FORSALE = 1
then if you want to read it you need to use
REF1=<REGION.UID>
SYSMESSAGE <REF1.TAG.FORSALE>
But
REF1=<REGION.UID>
REF1.REGION.TAG.FORSALE = 1
Basically in code, you are trying to do it in this way, even if you try to check t_multi's region with REGION.ISITEM you will see it will return as "1", while normal REGION never gives an answer for it. If you want to put a tag on t_multi, just use TAG.FORSALE not REGION.TAG.blabla. Or if you want to place a tag on the region, you need to get real region from multi which returns "Mainland (Wizard Tower)" and put the tag on it, there are so many ways to get it, it depends on you to choose which way to use.
from source-x.
in my defense, I will say that I study the scripts that come with the sphere X.
and I asked this question in discord
from source-x.
Honestly I don't remember how was it in older version of sphere but as I remember it was always like this, maybe I misremember but it can be script-side issue, or we may set region of the multi as a main region, so region could be used on multi.
from source-x.
I agree with this logic in scripts, but not when I do it manually in the game.
from source-x.
I've already sent a fix for it, it seems like REGION reference missed for multis so with a pr build it should work fine.
from source-x.
Related Issues (20)
- Problems with pain_spike magic in i_magic_necromancer
- ISVALID female gump HOT 7
- LIST and math HOT 2
- can_i_damageable and ItemHitpointsUpdate, do not update status HOT 2
- Giant Spiders drops i_spider_web in sleeping sector HOT 8
- @PersonalSpace trigger malfunctioning HOT 8
- ON=@FollowersUpdate not working as intended? HOT 3
- SkillClass on NPCS HOT 1
- spellflag_no_elementalengine & SPELLFLAG_FIELD_RANDOMDECAY
- @statchange dosnt work.
- ON=@DAMAGE together with CAN_I_DAMAGEABLE HOT 9
- Roomdef not being fully saved to the file HOT 1
- (opinion) Retrocompatibility is a lie HOT 4
- Remove internal message for fail mining spots HOT 13
- FLAGS & too long numbers (bug is back) HOT 1
- Console serv.log pointing to wrong lines in scripts? HOT 6
- @Stroke/@SkillStroke triggers not working with Lumberjacking skill HOT 1
- CAN_I_TIMER_CONTAINED and ItemTimers=1
- Calling custom trigger on timerf HOT 4
- Feature Request- Check sphere.ini on server boot.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from source-x.