Jump to content

Photo

Script Effects

script effect luck ahzidal

  • Please log in to reply
4 replies to this topic

#1
Littlebigpeach

Littlebigpeach

    Regular

  • Members
  • PipPip
  • 50 posts

Hi Nexus

 

I'm still relatively new to modding, and do not understand the nature of some "script effect" archetypes in the Creation Kit.

 

For example; the Imperial Luck ability (chance to find extra gold).

 

I can see the RaceImperial ability, which is inherent to imperials, and applies the RaceImperialLuckEffect (so far, so good)

But in the effect, I don't see how it works. I see no perks to apply, no papyrus scripts, no magnitudes or anything. The only things to identify it is "Constant Effect - Self - and Effect Archetype: Script"

 

 

Attached File  Cut.JPG   150.57KB   0 downloads

 

So how does it work exactly? What's the script it activates, and how can I see it/Imitate it?
(The end product here is I want to create a similar effect where Bosmer have a chance to harvest extra pelts from animals)

 

 

 

P.s. The Dragonborn priest masks have a similar way of adding their Fire/Shock/Frost damage bonuses, where I can only see an empty, no-magtiude "script archetype" effect.

 

 

Any help much appreciated, thank you.



#2
TobiaszPL

TobiaszPL

    Fan

  • Banned
  • 376 posts

You have Leveled Item "LootImperialLuck"

In this Leveled Item you have few golds that have 0% chance to show in inventory

 

but % is based on GlobalVariable which can be change by anything

- Script

- Spell

- Perk

 

just anything

 

"LootImperialLuck" is item used by 125 objects in Vanilla Game

objects like, chests, dead bodies etc.

 

GlobalVariable: -> ImperialLuck

LeveledItem: -> LootImperialLuck

 

//Edit:

If You open this Global Variable in Your CK You may saw that value is 100

does that mean that You have 100% chance for loot ?...

 

No... its chance to NOT have loot...

 

100% = Not to have

0% = to have

 

set value to 70 to have

 

70% = Not to have extra loot

30% = to have extra loot

 

etc.


Edited by TobiaszPL, 25 November 2019 - 05:17 pm.


#3
ReDragon2013

ReDragon2013

    Old hand

  • Members
  • PipPipPip
  • 740 posts

As Tobi written to you:

TESVEdit loaded with
  Skyrim.esm
  Update.esm

 + Spell  (Ability, 0.0, Constant Effect)
    RaceImperial ""Imperial Luck"" [SPEL:000EB7EB]
    Description    "Anywhere gold coins might be found, Imperials always seem to find a few more."

 + MagicEffect
    RaceImperialLuckEffect ""Imperial Luck"" [MGEF:0010EAD0]
    Archtype Script

inside the papyrus source folder

Skyrim   \ Data \ Scripts \ Source
SkyrimSE \ Data \ Source \ Scripts

you will find some scripts that use the GlobalVariable

Scriptname DLC2GoldPileScript extends ObjectReference
      GlobalVariable property ImperialLuck Auto                    ; ***
Scriptname QF_PerksQuest_0005F596 Extends Quest Hidden
      globalvariable Property GlobalPerkDaedricMind  Auto  
      GlobalVariable Property GlobalPerkGoldenTouch  Auto
      GlobalVariable Property GlobalImperialLuck  Auto  

      GlobalVariable Property SpecialLootChance  Auto  
      GlobalVariable Property PerkMasterTrader  Auto  

      GlobalVariable Property SpeechAverage  Auto  
      GlobalVariable Property SpeechEasy  Auto  
      GlobalVariable Property SpeechHard  Auto  
      GlobalVariable Property SpeechVeryHard  Auto
Scriptname QF__0114A0EF Extends Quest Hidden
      GlobalVariable Property GlobalImperialLuck  Auto


#4
Littlebigpeach

Littlebigpeach

    Regular

  • Members
  • PipPip
  • 50 posts

So if I wanted to make a script so that Bosmer had, say, a 50% chance to gain 1 extra hide from looted animals...

I would have to create a new leveled list for every animal, apply that to their loot table.
And then make a script which checks for GlobalBosmer"Luck" or whatever, and...

 

Well this is a bit over my head, I'm afraid :( - really a "noob" when it comes to Skyrim modding.



#5
NexusComa

NexusComa

    Faithful poster

  • Members
  • PipPipPipPip
  • 1,670 posts

yep ... the luck effect is really just a global that the scripts for "find gold" use.

If you have it then it uses a different table for if there is gold and the amount.

 

However you could put together a script for if opened a chest add some gold.







Also tagged with one or more of these keywords: script, effect, luck, ahzidal

IPB skins by Skinbox
Page loaded in: 0.378 seconds