Ok like I said I have never done any scripting before so I am new. I have asked others on Aardwolf (the game I play) for help and I have gotten limit unsuccessful help. here is what i want to do. Please be paitent as I know that this will be a long note. but hopefully I will have included on nessacery information. Plus what i have so far and the error that I got with it. If some one can tell me where i have gone wrong and how to fix it I will be greatly appreciative.
the script when commanded (spellup) will cast all known spells, Triggers will set varibles to remember which ones have been cast and which failed
when commanded (recast)will recast cast all known spells that failed the durning (spellup) and all spells that have worn off.
when commanded (remort) will set all spells to unknown
I know that i have to start by setting trigger that will set a variable in mush for each spell for cast = 1, failed/wore off = 2 , not known = 3.
there are differnt verbage that the world sends that will set the varible to 1 and 2. 3 will be set by the script when I type in "remort". that also has to be done by the script to correct and a trigger that fires the function? example:
"you are surrounded by a shield" trigger say function 'shieldu' that sets the variable to '1'
"your shield wears off" trigger say function 'sheildd' which sets the variable to '2'
is that part correct. coded in below but will be added to the rest of the code in the next section. (This part was wriiten at the time of the note)
function shieldu () {
world.SetVariable( "shield", 1 );
}
function shieldd () {
world.SetVariable( "shield", 2 );
}
function shieldf () {
world.SetVariable( "shield", 3 );
}
Now my problem is the cast/recast/remort part of the script. This is what i have so far:
function Spellup () {
if (world.GetVariable( "shield" ) == "1") {
World.send( "cast shield" ) };
}
function Recast () {
if (world.GetVarible( "sheild" ) == "2") {
World.send( "cast shield" ) };
}
function Remort () {
World.SetVariable ( "shield" ), "3");
}
I have put it in the plugins and I have gottin this error message. I have no clue as to what it is trying to tell me. I it as follows:
Line 3: Expected '<', got "f" (content not permitted here) (problem in this file)
this is for only one of the many spells in the game. I know that if i can get this one spell to work all the rest should work if i type the code in the same way replacing the spell name for "shield"
Ok I think that I have included every thing oh let me give aome system stat just in case they matter
windows xp
mushclint ver 3.65
I hope that is enough information. Any help will be gladly accepted. Please just remember that you are talking to a dumby though when it comes to this. thank you again for all your help
Enir
the script when commanded (spellup) will cast all known spells, Triggers will set varibles to remember which ones have been cast and which failed
when commanded (recast)will recast cast all known spells that failed the durning (spellup) and all spells that have worn off.
when commanded (remort) will set all spells to unknown
I know that i have to start by setting trigger that will set a variable in mush for each spell for cast = 1, failed/wore off = 2 , not known = 3.
there are differnt verbage that the world sends that will set the varible to 1 and 2. 3 will be set by the script when I type in "remort". that also has to be done by the script to correct and a trigger that fires the function? example:
"you are surrounded by a shield" trigger say function 'shieldu' that sets the variable to '1'
"your shield wears off" trigger say function 'sheildd' which sets the variable to '2'
is that part correct. coded in below but will be added to the rest of the code in the next section. (This part was wriiten at the time of the note)
function shieldu () {
world.SetVariable( "shield", 1 );
}
function shieldd () {
world.SetVariable( "shield", 2 );
}
function shieldf () {
world.SetVariable( "shield", 3 );
}
Now my problem is the cast/recast/remort part of the script. This is what i have so far:
function Spellup () {
if (world.GetVariable( "shield" ) == "1") {
World.send( "cast shield" ) };
}
function Recast () {
if (world.GetVarible( "sheild" ) == "2") {
World.send( "cast shield" ) };
}
function Remort () {
World.SetVariable ( "shield" ), "3");
}
I have put it in the plugins and I have gottin this error message. I have no clue as to what it is trying to tell me. I it as follows:
Line 3: Expected '<', got "f" (content not permitted here) (problem in this file)
this is for only one of the many spells in the game. I know that if i can get this one spell to work all the rest should work if i type the code in the same way replacing the spell name for "shield"
Ok I think that I have included every thing oh let me give aome system stat just in case they matter
windows xp
mushclint ver 3.65
I hope that is enough information. Any help will be gladly accepted. Please just remember that you are talking to a dumby though when it comes to this. thank you again for all your help
Enir