Question: Is there any odd quest stuff going on for new char

Post » Tue Jun 19, 2012 11:11 pm

Hey guys,

I have a script which performs a check to see if two quests are running. These are DGIntimidateQuest and c00JorrvaskrFight.

EVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)
if (brawlquest.isrunning()) || (fighterQuest.isrunning())
questcheck = 1
else
questcheck = 0
endif
debug.messagebox("test"+questcheck)

(properties are all correctly defined)

So when I run this plugin on a character who has completed the main quest, and the majority of side quests: or a character who is just about to attack the first dragon: the script works perfectly: i am output a 0 whenever I am hit outside of a brawl, and a 1 when hit inside of a brawl.

When I run this on a new character, it always outputs 1 and I am not sure why: does anyone know of anything that could be causing this?

Now as I am writing this, I though that perhaps the c00jorrvaskrFight (which I beleive is associated with the spar session in jorrvaskr on first entry) is always running until you enter the building. I haavent delved into quests yet so I am not sure how I can verify this.

If this is the case, I may have to alter my script to check to see if the brawl quest is running or if the player is inside jorvaskrr - Not sure how to do this yet.

any thoughts?

(Apologies: This isnt the most structured topic I have made, synapses are firing while I am in mod-mode and its ahrd to organise my thoughts!)
User avatar
Margarita Diaz
 
Posts: 3511
Joined: Sun Aug 12, 2007 2:01 pm

Post » Wed Jun 20, 2012 3:28 am

Confirming my suspicion, it is the jorrvaskr quest that causes the problem. All I would need to do is replace the quest check with a check to see if the player is inside the building. I'll havea rummage around the wiki now, but if anyone can post the relevant function/ properties needed I'd appreciate it!
User avatar
Pixie
 
Posts: 3430
Joined: Sat Oct 07, 2006 4:50 am

Post » Wed Jun 20, 2012 6:39 am

Fixed:

EVENT onHit(ObjectReference akAggressor, Form akSource, Projectile akProjectile, bool abPowerAttack, bool abSneakAttack, bool abBashAttack, bool abHitBlocked)if (brawlquest.isrunning()) || (actor.isinLocation(companionshouse))questcheck = 1elsequestcheck = 0endifdebug.messagebox("test"+questcheck)

the location you need to reference is whiterunjorrvaskrLocation.
User avatar
Michelle Chau
 
Posts: 3308
Joined: Sat Aug 26, 2006 4:24 am


Return to V - Skyrim