I managed to sort out house upgrades but this i cant solve. This is the same code as from Battlehorn Castle
Quest Stage 10
addtopic ATPMajesticUndergroundTrainerSparring << This works
Topics Main
Spar with me. << This i see and can select, all worksset ATPWarthokgroZugu01.sparring to 1 << Result Script for this topicATPMajesticUndergroundTrainerWeaponChoiceA Use a two-handed weapon. << Three choices added to this topic above, ATPMajesticUndergroundTrainerWeaponChoiceB Use a one-handed weapon. << these appear after selecting "Spar with me." aboveATPMajesticUndergroundTrainerWeaponChoiceC Use a dagger.
Sub Topic
Use a two-handed weapon. >> Response >> I'm good. I've got this hammer! Come on. << So this works, but the below code never gets run for the sub Topics, well it runs but he never equips it, cause if i choose another Sub topic like dagger, the war hammer will be removed and he ends up with a dagger, but not in his hand
ATPMajesticUndergroundTrainerWeaponChoiceA
unequipitem ATPSparringDaggerunequipitem ATPSparringWarAxeif getitemcount ATPSparringWarhammer == 0 additem ATPSparringWarhammer 1endifequipitem ATPSparringWarhammer 1 << I never see the weapon getting equipped
ATPMajesticUndergroundTrainerWeaponChoiceB
unequipitem ATPSparringWarhammerunequipitem ATPSparringDaggerif getitemcount ATPSparringWaraxe == 0 additem ATPSparringWaraxe 1endifequipitem ATPSparringWarAxe 1 << I never see the weapon getting equipped
This is the AI Script below, but this does not ever seem to run, i have message boxes below. I have not broke the below code down with info, as it does not get up and go
scn ATPTrainerScriptshort sparring ; 1 = move into position ; 2 = start sparring ; 0 = done sparringfloat timer ; short timer to determine end of sparring matchbegin OnLoad SetIgnoreFriendlyHits 1endbegin OnPackageDone ATPTrainerStartSparring if sparring == 1 player.setfactionrank ATPSparringFaction 0 set sparring to 2 startcombat player MessageBox "AAA OnPackageDone" <<<< I never see this endif setalert 1 MessageBox "BBB setalert" <<<< I never see thisendbegin gamemode if sparring == 2 MessageBox "CCC sparring" <<<< I never see this if timer > 0 set timer to timer - getSecondsPassed else ; check if player is outside of sparring ring or not in combat MessageBox "DDD sparring ring" <<<< I never see this if player.getdistance ATPWarthokgroZugu02 > 450 || isInCombat == 0 stopcombat player.setfactionrank ATPSparringFaction -1 set sparring to 0 setalert 0 ; unequip practice weapons unequipitem ATPSparringWarhammer unequipitem ATPSparringDagger unequipitem ATPSparringWarAxe evp MessageBox "EEE end" <<<< I never see this else set timer to 5 endif endif endifend
The AI Packages are identical to Battlehorn, and the References and Xmarker are identical. But of course all with my own ref and own ID. The Fraction for Sparring is set up identical to battlehorn but again with own unique ID, with same options ticked
BTW i have never done Topics before, there is a compile button on the Dialogue screen, should i compile things? I have made a backup of it, and then compiled but nothing happened. But i cant find any info on it either. Or should all of them be compiled(on the Dialogue screen)?