Recent Posts

Pages: 1 ... 8 9 [10]
91
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by Milos Gulan on December 20, 2017, 04:12:11 PM »
Thank You :) I will try to implement it soon. Right now I have started to do skeleton sprites. Beside that I am preparing Greyhawk adventures for my group and what happened till now is that they have passed a lot dungeoncrawling in Castle Greyhawk up till level 8 (gave up on a black dragon but did fantasticaly till that). Now I have I think 4 paths main is to defeat major evil and continue to adventure in GH castle. 2nd is to find lair of Dragotha dracolich and then later to find Keraptis and deal with them (3rd part of White Plume mountain). 3rd is defeat Suel archmage from past, then go to past and prevent Scarlet Brotherhood from stoping the change of usual things that happened in past. 4th is Queen of spiders story.

Problem with all this beside converting to DC which i think will be very hard with my current knowledge is that they will advance in levels and other paths are the same level as they curent characters are. Anyway here is the pic I better finish it and hopefuly to prepare for playing tomorrow :). I was thinking about GH mod but I just have problems with lots of rules that I probably will not be able to do. But not giving up, will do my mod to se how it is done.
92
General Discussion / Re: Inspirations: Movies, Music, Websites etc.
« Last post by Milos Gulan on December 20, 2017, 04:01:20 PM »
Ladyhawke, movie that looks good https://www.youtube.com/watch?v=iGs4o_5jyhw
93
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by manikus on December 20, 2017, 12:37:00 PM »
quote author=Paul R. Stevens link=topic=2194.msg52420#msg52420 date=1513730639]
Manikus, I don't understand what the last two
lines of that script are for.  They set hook parameter 5
and then exit.  That value will be ignored, I think.
[/quote]

I am confused - my script doesn't set Parameter 5 at all.

My script is more comprehensive than Nol's script - it does no damage if the target is immune to fire attacks, it does half damage if the target is resistant to fire attacks and does full damage if the target is neither immune nor resistant to fire.

Here is an updated version fo the script, because my line for fire restance was too effective. ;)
Code: [Select]
\(BEGIN)
name = item_LongSwordFlameTongue
[ComputeDamage] = $VAR p5;
-$VAR noFire;
-$VAR someFire;
-$VAR fireDamage;
-p5 = $GET_HOOK_PARAM(5);
-noFire = $GET_CHARACTER_SA($TargetContext(),"elemental_ImmuneFire");
-someFire = $GET_CHARACTER_SA($TargetContext(),"elemental_ResistantFire");
-fireDamage = $RANDOM(6) +# 1; // we add 1 because  the $RANDOM function will provide a number from 0 to 5
-$IF (noFire != "-?-?-") {$RETURN p5;};
-$IF (someFire != "-?-?-") {$RETURN p5 +# (fireDamage /# 2);};
-$RETURN p5 + fireDamage;
\(END)

edited to add:
This script assumes that the sword does regular damage, and the only fire damage is the extra d6. If it were all fire damage, the script would look a little different.
94
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by Nol Drek on December 19, 2017, 09:02:05 PM »
Here is my super simple Special Ability for a Long Sword that deals an extra 1d6 damage:

item_LongSwordExtraDamage
ComputeDamage:
Code: [Select]
$RETURN $GET_HOOK_PARAM(5) +# $RANDOM(6) +# 1;

Of course, you should manikus' script instead because it checks whether or not the target is immune to fire or resistant to fire.
95
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by Paul R. Stevens on December 19, 2017, 06:43:59 PM »
Manikus, I don't understand what the last two
lines of that script are for.  They set hook parameter 5
and then exit.  That value will be ignored, I think.
96
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by manikus on December 19, 2017, 12:45:22 PM »
There is no problem with the parameters for this Hook. They are used to retrieve information - parameter 5 retrieves the value of the damage that will be done. You wouldn't want to set the parameters to anything else in this script, but you do want to retrieve the information.

Plus, using a variable means that i can change the value of the variable without needing to change what the script returns.

(This is more of an explanatory note for the folks not resounding to this part of the thread, but for people who will read this and wonder what is goinng on.)
97
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by Paul R. Stevens on December 19, 2017, 12:41:59 AM »
Yes.  I think you are right.  That hook will not
work as currently implemented.

I just examined the engine code and it appears to
expect a return value, not  a change to hookparameter 5.

At least the code appears to agree with the documentation.
That is a plus.
98
Dungeon Craft - FAQs & Knowledge / Re: Questions about DC
« Last post by Nol Drek on December 18, 2017, 09:19:31 PM »
So the "item_LongSwordVSGiants" SA in the default database (which I based my script off of) must not work either.

Code: [Select]
$VAR tgt; // target
$VAR par5; // Hook parameter 5
$VAR name;
tgt = $IndexOf($TargetContext());
par5 = $GET_HOOK_PARAM(5);
name = $GET_CHAR_NAME(tgt);
$IF ($GET_ISGIANT($TargetContext())){$SET_HOOK_PARAM(5,(par5 *# 2) +# 1);};
$IF ($GET_MONSTERTYPE_SA(name,"subGiant") != "-?-?-"){$SET_HOOK_PARAM(5,par5 +# 1);};

I take it those $SET_HOOK_PARAM(5,N) statements should instead be $RETURN N statements.

Thank you, gentlemen, for your guidance as I continue to learn this scripting language.
99
Layers of Fear + Soundtrack free at the Humble Store (banner at the top of the page, requires Steam).
100
General Discussion / Re: Inspirations: Movies, Music, Websites etc.
« Last post by hans on December 18, 2017, 02:13:16 PM »
Star Wars: The Last Jedi is a very good and very long movie. 

Tho flawed, it's the best of the new Star Wars films.
Pages: 1 ... 8 9 [10]