Jump to content

Simple script problem


Recommended Posts

Ok... now I'm feeling dumb.

 

I have a quest set up with conditional stages (if you do things A then B then C, or C then B then A, or A then C then B, etc) and it works great. I have AI packages from a character removed and new ones put in and the NPC moves to a location marker and I want to have the following script run to make him change his equipment and the stage of the quest progress once he arrives...

 

ScriptName CRfinneasreequipscript

short doonce

Begin GameMode

if doonce == 0
if CRfinneas.getincell frostfireforge
CRfinneas.additem lowershirt01 1
CRfinneas.additem lowerpants01 1
CRfinneas.additem leathergauntlets 1
CRfinneas.additem leatherboots 1
CRfinneas.removeitem lowerpants05 1
CRfinneas.removeitem lowershirt05 1
setstage CRfinneasjob 40
set doonce to 1
endif
endif

end

 

 

But... he gets there, he stands there, and doesn't reequip and the stage doesn't progress. I've tried putting the script on him and leaving it off and just allowing it to trigger on GameMode automatically. What stupid thing am I doing that I'm missing? I must be getting tired :P

Link to comment
Share on other sites

Only thing I could suggest is changing "CRfinneas.getincell frostfireforge"to "CRfinneas.getincell frostfireforge == 1". Apart from that it looks about right. If that change doesn't work, try sticking a message underneath the doonce if test, and another after the getincell test. Depending on which ones show up, you can infer which part is failing.

 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...