Jump to content

virginharvester

Banned
  • Posts

    446
  • Joined

  • Last visited

Everything posted by virginharvester

  1. hi, sorry for my bad english, previously i request "kill all enemies when combat triggered", if you wonder why?, because i like to enjoy the story without combat this time anyway, after googling i found it : "Witcher 3: Autokill Enemies" https://www.moddb.com/games/the-witcher-3-wild-hunt/addons/modautokillenemies it works, all enemies will die when combat triggered, but there a problem, some enemies have the script, if you kill them instantly(too fast) they will be bugged, like never-ending loading, double unique npc, the quest cannot progress further, etc because of that, i like to make the "auto kill" slower, so the game will be running with less bug, anyway, because the original mod has auto-hidden enemies corpse, i delete some line and become something like this: if( IsRequiredAttitudeBetween(this, thePlayer, true) ) //modAutokillEnemies { Kill( 'ForcedByScript', true ); } the original file : "the witcher 3 - wild hunt\content\content0\scripts\game\npc\npc.ws" starting at line 4067, and the idea that i like is something like this : if( IsRequiredAttitudeBetween(this, thePlayer, true) ) //modAutokillEnemies { while(enemy.alive = true) { EnemyHealth = EnemyHealth - (EnemyHealth / 10); DelayInMicroSeconds(200); } } because my coding skill is not that high, i don't know where i should start, i hope somebody reads this and please, make the mod for me, thanks for reading, have a nice day
  2. i just want to skip the combat and enjoying the story, i dont know if it hard, but this the code : //start code while(1 ==1) killall(1000); wait(1000);// 1000 milisecond or 1 second endwhile //end code the problem is : i don't know where should i put it
  3. Hi, sorry for my bad english, every time i play this game, i always focus on combating, collect gears, get alchemy ingredient, getting the right perk, or something like that so much focus, i lost the story because of i always eager to next combat strategy(skip the story), this time i like to focus on the story, so i like request the mod: "KillAll(1000)" every second(s), if this applied, i can progress the story without worry about combating can somebody make this for me, please? optional: i don't know if certain enemy(s) have some bug/abnormal if the "killall" command called, i hope the mod has a switch on the "mod menu" to turn off/on the script/mod, or you can put the script on the invisible mask, but it only optional, if it too hard, the "killall" every second is enough for me thanks for reading, have a nice day
  4. i found it, this is the script : SPELL Property TransmuteOreMineral Auto Cost = TransmuteOreMineral.GetEffectiveMagickaCost(caster) i require SKSE, i hope it useful for somebody who look for it
  5. Hi, SFMBE, i like to mod transmute spell. from 1 cast = 1 item, to 1 cast spell = as long the raw ingredient and magicka avaliable, the transmute will be do it again, this is the original code Scriptname transmuteMineralScript extends ActiveMagicEffect {script for spell to allow transmutation of ores} import game MiscObject Property Ore01 Auto {Lowest value ore} MiscObject Property Ore02 Auto {Middle value ore} MiscObject Property Ore03 Auto {Highest value ore} Sound Property FailureSFX Auto float property skillAdvancement = 15.0 auto {How much to advance the skill? Only works when spell actually transmutes something} message property failureMSG auto EVENT OnEffectStart(Actor akTarget, Actor akCaster) objectReference caster = akCaster if caster.getItemCount(Ore02) >= 1 ; favor the more valuable ore first caster.removeItem(Ore02, 1, TRUE) caster.addItem(Ore03, 1, FALSE) advanceSkill("alteration",skillAdvancement) elseif caster.getItemCount(Ore01) >= 1 ; if none of that, look for the base ore to upgrade caster.removeItem(Ore01, 1, TRUE) caster.addItem(Ore02, 1, FALSE) advanceSkill("alteration",skillAdvancement) else ; caster must have had no valid ore FailureSFX.play(caster) failureMSG.show() endif endEVENT and this is the code after i edit: Scriptname transmuteMineralScript extends ActiveMagicEffect {script for spell to allow transmutation of ores} import game MiscObject Property Ore01 Auto {Lowest value ore} MiscObject Property Ore02 Auto {Middle value ore} MiscObject Property Ore03 Auto {Highest value ore} Sound Property FailureSFX Auto float property skillAdvancement = 15.0 auto {How much to advance the skill? Only works when spell actually transmutes something} message property failureMSG auto float property Cost = 88 auto EVENT OnEffectStart(Actor akTarget, Actor akCaster) objectReference caster = akCaster While (caster.getItemCount(Ore02) >= 1) && (caster.GetActorValue("Magicka") >= Cost) && !(caster.IsInCombat())) caster.DamageAV("Magicka", Cost) caster.removeItem(Ore02, 1 , TRUE) caster.addItem(Ore03, 1 , TRUE) Game.advanceSkill("alteration",skillAdvancement) EndWhile While (caster.getItemCount(Ore01) >= 1) && (caster.GetActorValue("Magicka") >= Cost) && !(caster.IsInCombat())) caster.DamageAV("Magicka", Cost) caster.removeItem(Ore01, 1 , TRUE) caster.addItem(Ore02, 1 , TRUE) Game.advanceSkill("alteration",skillAdvancement) EndWhile endEVENT as you can see, the code will constant reduce 88 point of magicka in every items "transmute", i like to reduce it, if the caster have "Adept Alteration perk" And/Or equipment that reduce magicka cost for Alteration spell, so, if i equipped with 4x "reduce 25% Alteration spell" gears, the cost will changed from 88 to 0, can someone guide me please? thanks for reading, have a nice day
  6. first, your link is "https://www.nexusmods.com/witcher3",please check again second, the mod you mention "Geralt Level Scales" or https://www.nexusmods.com/witcher3/mods/3961 after i read the description, you the one who made it, thanks alot, i really appreciate it,
  7. no, its not help me, you bring me new questions for me than the answer
  8. SFMBE, after a long time i do modding skyrim again, and I forgot how to do some basic and can't find the solution at the internet, basically, this is the scratch script (i not test it) : Scriptname HotkeyScript Extends Quest MiscObject Property GemAmethyst Auto MiscObject Property GemAmethystFlawless Auto MiscObject Property GemDiamond Auto MiscObject Property GemDiamondFlawless Auto MiscObject Property GemEmerald Auto MiscObject Property GemEmeraldFlawless Auto MiscObject Property GemGarnet Auto MiscObject Property GemGarnetFlawless Auto MiscObject Property GemRuby Auto MiscObject Property GemRubyFlawless Auto MiscObject Property GemSapphire Auto MiscObject Property GemSapphireFlawless Auto int property VarCount auto int property Loop auto MiscObject[] ArrayInput[6] ArrayInput[1] = GemAmethyst ArrayInput[2] = GemDiamond ArrayInput[3] = GemEmerald ArrayInput[4] = GemGarnet ArrayInput[5] = GemRuby ArrayInput[6] = GemSapphire MiscObject[] ArrayOutput[6] ArrayOutput[1] = GemAmethystFlawless ArrayOutput[2] = GemDiamondFlawless ArrayOutput[3] = GemEmeraldFlawless ArrayOutput[4] = GemGarnetFlawless ArrayOutput[5] = GemRubyFlawless ArrayOutput[6] = GemSapphireFlawless // register for right shift Event OnInit() RegisterForKey(54) EndEvent // if right shift pressed Event OnKeyDown(Int KeyCode) If KeyCode == 54 For(Loop = 1, Loop <= 6, Loop++) VarCount = Game.GetPlayer().getItemCount(ArrayInput[Loop]) Game.GetPlayer().removeItem(ArrayInput[Loop],VarCount) Game.GetPlayer().addItem(ArrayOutput[Loop],VarCount) EndFor EndIF EndEvent as you can see, the declare for Array seem wrong, can someone show me how to declare "MiscObject" as Array object? second thing is i cant find loop for "FOR" at internet, is "FOR" loop exist in papyrus? of course you can correct me for other syntax or anything else, thanks for reading
×
×
  • Create New...