Comments (14)
Hmm, okay I see the issue I will take a look now
from source-x.
I added this piece of code recently but it was working.
eef10d8
from source-x.
mmm the one you posted isnt in core right now actually. 🤔
from source-x.
Update, connection to the problem is flag listed below. If both activated, its bugging the taming. If I disable this one, its fine.
// EF_FollowerList 000080 // Save the followers to the list and enable CURFOLLOWER.n.UID, CURFOLLOWER.ADD/DEL and CURFOLLOWER.CLEAR commands.
from source-x.
These flag is a new feature.seem s bug was added
from source-x.
Updated first post, with connections I found.
from source-x.
Also with both flags activated, the followerslots property doesnt work. Its always = 1.
from source-x.
If I understand you clearly, it's not a bug. Because EF_FollowerList is a new flag to add option to create list automatically for your followers. I meant FollowerSlots only working without this flag activated, because old system only keeping the number of followers while new system keeps list of followers. If you want to add npc manually to someone's follower list with EF flag active, you need to use
<PLAYER>.CURFOLLOWER.ADD <FOLLOWER.UID>
or
<PLAYER>.CURFOLLOWER.DELETE <FOLLOWER.UID>
to remove.
<PLAYER>.CURFOLLOWER.CLEAR
clears the list.
IF you activate EF_FollowerList you tell the Sphere, that you gonna use new system, so you need to use ADD command to add something manually to the list, CURFOLLOWER += 1 or anything similar to this not working with new system.
from source-x.
Ok and what about the Taming not working at all?
"If I activate this sphere.ini setting, set followerslots on NPC to 1, and have on char MAXFOLLOWERS=5 and try to tame the creature, it will immediately fall into this part."
"it also add curfollowers to my status, but the creature is not tamed and doesnt act like it is"
from source-x.
Just to have it clear myself: is every pet "worth" 1 slot if using EF_FollowerList? How do you set an upper limit, by tweaking the trigger or is there some default/fixed value?
from source-x.
solved on dev branch, thank you!
from source-x.
I have a question about the new system, if a follower have FollowerSlots > 1, isn't curfollower returning the wrong number?
CHC_CURFOLLOWER return m_followers.size() as followers number but that is the followers number not the followers total slots.
For example if i have 2 followers, the first 1 with FollowerSlots = 1 and the second one with FollowerSlots = 2, CURFOLLOWER return 2 instead of 3.
from source-x.
Yea because apparently this new system (EF_FollowerList) was made as new thing and is not using the followerslots. ( you would need to script your own ) with the new trigger.
from source-x.
The fact is the function seems to use FollowerSlot but even if you change it using the @FollowersUpdate trigger they don't get updated, because CURFOLLOWER read only the follower array dimension, so you can't customize it.
That would require a two-dimension array where for each follower you can save also the FollowerSlots.
CScriptTriggerArgs Args;
Args.m_iN1 = (iFollowerSlots >= 0) ? 0 : 1;
Args.m_iN2 = abs(iFollowerSlots);
if (OnTrigger(CTRIG_FollowersUpdate, pChar, &Args) == TRIGRET_RET_TRUE)
return false;
if (Args.m_iN1 == 1)
{
iFollowerSlots = -(short)(Args.m_iN2);
}
else
{
iFollowerSlots = (short)(Args.m_iN2);
}
from source-x.
Related Issues (20)
- Debug and t_multi (custom?) HOT 4
- t_multi_custom remove HOT 3
- Vendor (Item without Value) HOT 9
- Feature Request: TIMERFD HOT 6
- TEVENTS not being saved on the item HOT 12
- COMP (Gets the number of components) HOT 5
- T_Multi_Addons Position
- ADDCOMP, DELCOMP HOT 8
- ISSTUCK HOT 15
- CAN_I_SCRIPTEDMORE
- PLEVEL commands not working on GM account HOT 2
- Problems with Curse Weapon magic in i_magic_necromancer
- 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
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.