13. May 08
21:28
 
Register
Home
News
Information
Manuals
Polls
Contact
Public Forums
File list
Links's
Suggest link
Image list
 
www.bekerle.com

Message view


Categories Public Forums SciTE EScript Editor


my code

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..




Message threads

Topic: Author:
Time:
Message  my code
Key 28.03.2005 22:17  
Message    RE: my code
Firedancer (Administrator) 29.03.2005 20:06