Post by PaulCampbell on Sept 22, 2008 23:31:13 GMT
Hi,
Thanks for providing this great resource to fans of Fighting Fantasy!
I've been experimenting and I'm afraid I have a couple of problems...
Problem #1
I'm trying to add a function to my character sheet which doesn't seem to work and can't see where the problem lies.
The idea is that if the character has provisions available, you can click on a link to eat them (and restore some Stamina). If they don't have provisions then the option isn't available.
The code I've written is:
<IF condition="$provisions==0" truecolor="hidden"><OPTION option="&gain_stat('stamina',4); $provisions=$provisions-1" count="infinite">Eat provisions</OPTION></IF>
I know that the OPTION part works (since it works on its own outwith the <IF></IF> statement) but putting it between <IF></IF> tags just gives me unclickable text.
Problem #2
There also seems to be a problem with &combat_1on1.
On a certain page, I've added:
<SCRIPT script="&combat_1on1(332,1,0,'Angry Man',6,8,);"></SCRIPT>
... as per instructions elsewhere on the forum and the following confused message is the result:
Combat Round:0
You have taken all the damage you can, and lost this combat.
Combat Status:won
(With the text option I've written for a win appearing after)
Problem 3
&testluck() seems to (i) subtract 2 from current Luck, (ii) fail to provide a warning if Luck drops below 2 (which I had the impression it was supposed to do), and (iii) allow Luck to drop below 0.
I'm sorry to be a nuisance but I thought addressing all of my problems in one post would be better than posting three different problems.
Keep up the good work and thanks again for providing this resource.
P
Thanks for providing this great resource to fans of Fighting Fantasy!
I've been experimenting and I'm afraid I have a couple of problems...
Problem #1
I'm trying to add a function to my character sheet which doesn't seem to work and can't see where the problem lies.
The idea is that if the character has provisions available, you can click on a link to eat them (and restore some Stamina). If they don't have provisions then the option isn't available.
The code I've written is:
<IF condition="$provisions==0" truecolor="hidden"><OPTION option="&gain_stat('stamina',4); $provisions=$provisions-1" count="infinite">Eat provisions</OPTION></IF>
I know that the OPTION part works (since it works on its own outwith the <IF></IF> statement) but putting it between <IF></IF> tags just gives me unclickable text.
Problem #2
There also seems to be a problem with &combat_1on1.
On a certain page, I've added:
<SCRIPT script="&combat_1on1(332,1,0,'Angry Man',6,8,);"></SCRIPT>
... as per instructions elsewhere on the forum and the following confused message is the result:
Combat Round:0
You have taken all the damage you can, and lost this combat.
Combat Status:won
(With the text option I've written for a win appearing after)
Problem 3
&testluck() seems to (i) subtract 2 from current Luck, (ii) fail to provide a warning if Luck drops below 2 (which I had the impression it was supposed to do), and (iii) allow Luck to drop below 0.
I'm sorry to be a nuisance but I thought addressing all of my problems in one post would be better than posting three different problems.
Keep up the good work and thanks again for providing this resource.
P