OutSider
08-06-2003, 09:38 AM
i'm trying to make something for a text-based webgame, since you have to fight, you have values like defences, strenght & so on
to make it easyer for the users, instead of just typing a value in each field, i tried to make something with javascript that they should just copy paste the entire line in the textarea and by pressing on of the 2 buttons on the bottom, certain values are entered in one of the 2 rows above (depending on wich button)
this is what it should be (http://users.pandora.be/itdon/FA/durandal/temp.html)
when someone enters the following in the textarea
Swamp Rat (sacrifice) Rat/earth, dead L16 48/72 F50/D0/A50/E100
and then presses the first button for example,
then the script should place:
48 in row 1, box1
72 in row 1, box2
50 in row 1, box3
0 in row 1, box4
50 in row 1, box5
100 in row 1, box6
ive seem something like this on a webpage somewhere, but i wasnt allowed to use that script from the owner
if you need any more info, just ask
to make it easyer for the users, instead of just typing a value in each field, i tried to make something with javascript that they should just copy paste the entire line in the textarea and by pressing on of the 2 buttons on the bottom, certain values are entered in one of the 2 rows above (depending on wich button)
this is what it should be (http://users.pandora.be/itdon/FA/durandal/temp.html)
when someone enters the following in the textarea
Swamp Rat (sacrifice) Rat/earth, dead L16 48/72 F50/D0/A50/E100
and then presses the first button for example,
then the script should place:
48 in row 1, box1
72 in row 1, box2
50 in row 1, box3
0 in row 1, box4
50 in row 1, box5
100 in row 1, box6
ive seem something like this on a webpage somewhere, but i wasnt allowed to use that script from the owner
if you need any more info, just ask