View Single Post
Old 09-13-2008, 11:07 AM   #1
manikus
Jack Burton
 

Join Date: July 13, 2001
Location: Stumptown
Age: 53
Posts: 5,444
Sunglass Man Help with understanding Strength Spell

I've been going through the spells.txt file trying to get a better understanding of scripts.

When I was looking at the first level magic-user spell, "Strength", I came across a line of script that made no sense to me.

modify script 2 = $RETURN ($RANDOM(Cool *# 10);

It's the use of the term 'cool' in the script that is confusing me.

Any help would be greatly appreciated.

Below is the full spell for context, the line in question is near the end.

\(BEGIN)
name = Strength
casting sound = DEFAULT
cast msg = /t feels stronger
missile sound = none
coverage sound = none
hit sound = none
linger sound = none
cast art = DEFAULT
missile art = none
target cover art = none
target hit art = none
target linger art = none
class = MU
cast by = MU + Ranger
friendly fire ok = yes
cumulative = no
usable by party = yes
can scribe = yes
auto scribe = no
combat only = no
can be dispelled = yes
lingers = no
linger affects once = no
save versus = spell
save result = none
targeting type = touch
level = 2
casting time = 1
casting time units = turns
Number of targets = 1
duration = 1*level
duration units = hours
target duration =
target range = 1
price = 0
spell effect 1 = $CHAR_STR,0,delta,target,yes
spell effect 2 = $CHAR_STRMOD,0,delta,target,yes
spell effect 3 = $CHAR_DAMAGEBONUS,1,delta,target,yes
spell effect 4 = $CHAR_HITBONUS,1,delta,target,yes
activate script 1 = $RETURN ($GET_CHAR_TYPE($IndexOf($Target())) !\=# 3);
activate script 2 = $IF ($GET_CHAR_TYPE($IndexOf($Target())) \=\=# 3) { $RETURN 0; };$IF ($GET_CHAR_FIGHTERLVL($IndexOf($Target())) ># 0) { $RETURN 1; };$IF ($GET_CHAR_PALADINLVL($IndexOf($Target())) ># 0) { $RETURN 1; };$IF ($GET_CHAR_RANGERLVL($IndexOf($Target())) ># 0) { $RETURN 1; };$RETURN 0;
activate script 3 = $RETURN ($GET_CHAR_TYPE($IndexOf($Target())) \=\=# 3);
activate script 4 = $RETURN ($GET_CHAR_TYPE($IndexOf($Target())) \=\=# 3);
modify script 1 = $IF ($GET_CHAR_FIGHTERLVL($TargetIndex()) ># 0) { $RETURN $RANDOM(Cool; };$IF ($GET_CHAR_PALADINLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(Cool; };$IF ($GET_CHAR_RANGERLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(Cool; };$IF ($GET_CHAR_CLERICLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(6); };$IF ($GET_CHAR_DRUIDLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(6); };$IF ($GET_CHAR_THIEFLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(6); };$IF ($GET_CHAR_MAGUSERLVL($IndexOf($Target())) ># 0) { $RETURN $RANDOM(4); };
modify script 2 = $RETURN ($RANDOM(Cool *# 10);
begin script =
end script =
\(END)
__________________
manikus is offline   Reply With Quote