Welcome to the Builder Academy

Question Question on summoning

More
26 Aug 2025 12:31 #10872 by wlessard1
I have been delving into summoning now.
Have it worked out that I can make new summoning spells no problem.

Now here is the question I am wrestling with.

I want to set a duration on some of them. For example, I made a spiritual hammer spell and I used summoning for ease to make it. So along comes mr spiritual hammer, no problem.
Is there a way to put a duration on it so that after X ticks it goes away? Or am I missing that little piece in the rest of the summoning code. Also wondering if a random summon can be done?
Like say Find Familiar and it summons a random list of mobs.

I bet this one is fairly simple and I just can't see it as usual.

Please Log in or Create an account to join the conversation.

More
26 Aug 2025 20:35 - 26 Aug 2025 20:38 #10873 by thomas
Replied by thomas on topic Question on summoning
Just add a trigger with

%wait% <some time>
%purge% %self%

You could do more complicated things, like setting the GET_OBJ_TIMER() on the object when summoning and then checking in the script:

if %self.timer% < 10
%purge% %self%
end
Last edit: 26 Aug 2025 20:38 by thomas.
The following user(s) said Thank You: wlessard1

Please Log in or Create an account to join the conversation.

More
26 Aug 2025 21:12 #10874 by wlessard1
Replied by wlessard1 on topic Question on summoning
I used a MOB for the Spiritual Hammer. Not sure how I would go about making an obj that would independently attack and help the character. Or if it is possible.

Please Log in or Create an account to join the conversation.

More
27 Aug 2025 18:58 #10876 by thomas
Replied by thomas on topic Question on summoning
Ah, didn't consider that. I don't think there's a good option for scripting this, then.

Please Log in or Create an account to join the conversation.

More
27 Aug 2025 22:13 - 27 Aug 2025 22:14 #10877 by wlessard1
Replied by wlessard1 on topic Question on summoning
I tried doing a standard
af.duration = X
but that didn't seem to work.

maybe in the long run the players who MIGHT be on for hours could find it a little broken but probably for the average player, it wouldn't be an issue for game balance.

Why I am worried about this, I am not sure as my mud will never see the light of day. Only a few snippets I come up with and such and flesh out with help.
Last edit: 27 Aug 2025 22:14 by wlessard1.

Please Log in or Create an account to join the conversation.

Time to create page: 0.249 seconds