Magic - littlesera/LSCG GitHub Wiki
Magic is an opt-in system to craft and apply custom sets of LSCG effects.
Edited by @dwfree
Configuration and Crafting
Configuration
Once you've installed LSCG, navigate to the Settings section and choose Migic(™). This will open three configuration pages: the first and third pages offer various options, while the second page is where you'll craft your spells. You'll likely spend most of your time on this page, so make yourself comfortable! Unless you have no interest in using magic, the first step is straightforward.
- Enabled - Opt-in for magic. This is required to use spells and be affected by spell effects.
- Blocked Effects - By default, all effects are allowed. Check any effects you wish to block for now, keeping in mind you can change them in the future.
Wild Magic
A "Wild Magic" spell is a spell randomly chosen from your spell list, with a small chance of casting an entirely random spell. If a "paired" effect is used, a random target will be selected if available. If an "outfit" effect is incorporated into a wild spell, it will select a random outfit from either your MBS list (if available) or your wardrobe.
Here are the options for Wild Magic:
- Enable Wild Magic - This allows you to intentionally cast wild magic spells.
- Force Wild Magic - This removes the ability to select spells from your spell book; you'll only be able to cast wild magic spells.
- True Wild Magic - This always generates a random spell when casting wild magic; you won't be able to choose from the existing spell list.
Spell Crafting
Spells may be named and crafted with up to 3 distinct spell effects. You can mix up to 3 effects together for thousands of unique combinations. They can also be configured to be 'brewed' into potion bottles/filled glasses/mugs. For spells used as a potion, the mod will look for the spell name in the drink's crafted name or description similar to the drug enhancements keywords.
Spell Effects
There are various spell effects available, and more may be added over time. You can find their detailed descriptions in the LSCG settings as you scroll through them. In general, these effects fall into three main categories:
- Standard - These include effects like "arousing," "blinding," or "enlarging," among others. Standard effects apply a condition to the target until it's removed.
- Wardrobe/Equipment Changing - These effects take an encoded outfit string, similar to BCX or MBS, and apply them to the target in various ways, altering their appearance.
- Pairing - Pairing effects require a second target for their full behavior. An example is orgasm siphoning, which 'steals' orgasms from the source, denying them, and 'gifts' them to the target.
Outfit and Polymorph Effects
Each of these takes a base64 encoded ItemBundle[] array of game assets that will be applied based on its configuration. You can get these encoded strings using BCX export in the wardrobe, or by using /lscg get-outfit-code [target]
or /lscg get-polymorph-code [target]
commands. Alternatively, you can use an MBS wheel set by entering its name in the same 'code' field. Finally, wardrobe outfits are available for use by using the numerical index of the wardrobe slot in the same 'code' field.
- NOTE: To try and save bandwidth, pasted strings are parsed, and items that do not apply to the effect are removed. This means an encoded string of an entire appearance pasted into a polymorph effect will not save any of the clothing/items in the array. Recognize that this means you won't be able to copy an encoded string from an outfit effect to a polymorph effect and expect it to work.
Remote Access
Control remote access to your magic settings. These are very similar to other LSCG remote settings with a few new bells and whistles.
- Allow Remote Access - Must be true to allow remote access to magic settings
- Lockable - Allow remote users to lock you out of your magic settings
- Require Trance - Remote access is only allowed while you are hypnotized
- Limit to Hypnotizer - Remote access is only allowed for the person who hypnotized you
- Allowed Member IDs - Remote access is only allowed for member numbers on this comma-separated list if populated.
Settings that can be remotely configured:
- Lock/Unlock all magic settings
- Require trance for remote access/limit access to hypnotizer
- Wild magic settings
- Blocked spell effects
- Duration settings
- Polymorph allowed to change Genitals
Spell Duration
By default, a spell's duration is calculated as 5 minutes multiplied by the difference in the activity rolls between the caster and the target. For example, if a caster rolls a 15 and the target rolls a 10, resulting in a difference of 5, the spell's effects will last for 25 minutes. However, there are settings that allow you to modify this behavior: There are some settings to modify this behavior:
- Never Defend - If this option is checked, you will not be able to defend against spells. Good luck!
- Defenseless Against IDs - This setting allows specific individuals or member IDs to cast spells on you without any resistance. You can specify a comma-separated whitelist of member IDs for this purpose.
- Limited Spell Duration - By default, this option is checked, which means spells cast on you have a limited duration. If unchecked, spells will not have any expiration.
- Maximum Spell Duration - If spell duration is limited (as determined by the "Limited Spell Duration" setting), you can set a maximum number of minutes that spell effects can last. If this value is set to 0, the default behavior mentioned earlier will be used.
Spell Casting
Now that everything is set up, you're ready to start casting your amazing and unique spells. To begin, make sure you have your wand of choice in hand. You'll often see many people with the Rainbow Wand, which can be obtained at the Magic Club. However, there are several other options:
- Full-sized and Mini “Magic Wands” - These are the classic magic wands you may have used in various ways before. Just be sure to clean them off before using them for spellcasting.
- Shock Wand - Yes, it's a wand, and it can be a rather silly choice. But why not? After all, magic comes in many forms.
- Baguette - Who says French bread can't be magical? The Baguette is another whimsical option to consider.
You can use someone else's wand, but exercise caution. While it may work at times, there's a chance it could backfire on you.
Once you have your wand in hand, follow these steps:
- Click on your target (including yourself).
- Choose the "Magic" button.
- Select the type of magic you want to perform: "Cast Spell," "Wild Magic," or "Teach Spell."
If you choose to cast or teach a spell, you'll see a list of spells to choose from. If you opt for wild magic, the spell will be cast immediately. Keep in mind that there's a dice roll involved, which you'll only see if the caster loses the roll. This element of chance adds an exciting twist to your magical endeavors.
Now, you're all set to embark on your magical adventures with your chosen wand and spellcasting abilities. Enjoy the enchantment!