Heya fellow wizards! Toaster here! Author of notoriusly critically-aclaimed spells such as
All spells come with errors, infinite loops, redundancy, and no comments to satisfy your personal troubleshooting urges! You're welcome! /s
Joking aside, does anyone know how to make an orb target an object and then circle around it? I'm trying to make a "Target Air Bubble" that targets an object (or a player when multiplayer hits) and then makes a water-repelling orb circle around it (or him/her).
(hopefully that made sense, I'm crap at explaining things)
Thanks! I'd appreciate any help.
Edit: Here's the thing that I did done did!
Welcome to the forums, Toaster!
To answer your question: You can't exactly make an orb orbit around a specific object as far as I know (though it would likely be possible using the evil and corrupt art of black magic), but you can 'cheat' a little. Make two spells:
Spell #1 simply flies until it hits something, then checks if whatever it hit there is an object. If it is an object, let the orb continue to fly for like half a second and then stop (so that it ends up inside the object). Then make it cast spell #2.
Spell #2 simply needs to orbit the creator (which means, the first orb) and repel water.
Should work like that. If you need more help, let me know, though I'd suggest you do so in the spell-crafting category.
Thanks for the advice! I managed to make both spells work, however I keep getting a mana error on the DetectObject spell, even though I have 1 mana in each mana box, except for water which has 50. Mind helping me out further?
Thanks for the help!
I managed to make both spells work, however I keep getting a mana error on the DetectObject spell, even though I have 1 mana in each mana box, except for water which has 50. Mind helping me out further?
I did as you suggested and made another post in the Spellcrafting category! I tried to link it here, but I got flagged for some reason. Should be the newest one I expect. Edit: Nope it got flagged as spam too.
This is the spell if you wouldn't mind taking a look at it!
DetectObject spell: (1 mana of each type, except for Water which has 51 mana)
Set Orb Colour* Black
Set Orb Speed Fast
if: Is World Object [Last Hit World Object] Moveable?
do: count with i from 0.5 to 1 by 0.5
do: Set Orb Speed [Stopped]
Log Message "Attached"
Cast Spell: (0 Earth mana, 0 Water Mana, 0 Fire mana, 0 Air mana) (Spell name: "Air Bubble_Creator"
Log Message "Not Attached"
Air Bubble_creator spell:
Set Orb Colour* Blue
Set Orb Speed fast
Orbit Creator Distance [Random Fraction] + 1, Time per Revolution [1e-11]
Set Repel Water, Activated [Yes], Strength  | 2 mana per second
Yeah, I can see its being flagged... probably suspects that it's similar to an existing post? I can still access the link though.
Edit: Might also be related to trust level, I'm not sure.