Key
Guest
Time: 28.03.2005 22:17
|
|
1) sorry - my english is terrible :D
2) I have a problem with my scripts. Example: I want to script a simple function which will do increasing of intelligence of player. Here is mine script:
use uo;
program cast( who, spell ) //name of command
var chant := 100; //name of "spell"
CInt(spell); // converts string spell to integer
var intelligence := who.intelligence; // read char. intelligence
var int_now := intelligence; // save it to variable
if (chant = spell) // if spells number is equal to chant no. then
who.intelligence_mod := int_now + 20 ; //increase intell + 20
endif
endprogram // end function
I think that the mistake must be in access in intelligence. tnx 4 all your advises..
|