Ironworks Gaming Forum

Ironworks Gaming Forum (http://www.ironworksforum.com/forum/index.php)
-   Dungeon Craft - RPG Game Maker (http://www.ironworksforum.com/forum/forumdisplay.php?f=20)
-   -   Using the spell editor (http://www.ironworksforum.com/forum/showthread.php?t=42186)

Steve McDonald 05-26-2002 08:37 PM

Maybe someone can help me. I'm trying to get my head around the spell editor (simple healing and damage spells are ok). I am having trouble with more tricky spells - probably because I don't know the parameter names. This is what I'm trying to do and anyone's suggestions would be good.

Normally, you gain 1 hitpoint per day from resting. The spell, when cast upon a character, would allow that character to regain 1 hitpoint per hour when resting. Alternatively (probably better though I suspect more complicated), one hit point per level of the caster per day.

If anyone can suggest how to achieve this, it would be greatly appreciated.

Steve McDonald 05-26-2002 10:07 PM

More problems with the spell editor:

1) I copied the example "conditional activation script" from the help file. It didn't work. I'm not a programmer and can't work out why. What I want to do is activate a different script if the level of the caster is even than if it is odd (the ultimate aim is to create a magic missile spell which requires 2-5 hitpoints damage per two levels of the caster - I'm pretty close if I could just get the activation script to work).

2) I want to do 1d4+1 damage per level of the caster. Can this be done? Is it possible to do 1d4*level - I can't get it to work.

3) When I type 1d4+1+1*level, it is automatically changed to 1d4+1+1+level*1 (ie 1d4+2+1*level). Is it a bug? It seems to be adding an extra "1".

Sorry for my lack of programming knowledge... These are probably pretty basic questions. Thanks for any help.

CocoaSpud 05-27-2002 08:18 AM

Quote:

The spell, when cast upon a character, would allow that character to regain 1 hitpoint per hour when resting.
I don't think this is possible yet. I'm thinking the spells would need a way to perform time-based modifications. Currently, the only effect that time has is to trigger removal of a spell. In this case, there would be a list of spell effects that are triggered once per specified time interval. The current spell effects take effect once when the spell is activated, and optionally removed when the spell has expired.

Quote:

I copied the example "conditional activation script" from the help file. It didn't work.
The help compiler stripped out part of the text and I didn't notice it. The script example should really look like this:

$IF ( $Class($Target()) == "Fighter" )
{
$RETURN true;
}
$ELSE
{
$RETURN false;
};

Quote:

I want to do 1d4+1 damage per level of the caster.
Syntax such as '1d4*level' won't work yet. It can't even be faked by using '0+level*1d4'.

Quote:

When I type 1d4+1+1*level, it is automatically changed to 1d4+1+1+level*1
In this case, I think '1d4+1+level*1 should work ok.

The parser for the DicePlus expressions is a little picky and not as flexible as I would like. Generally, when using labels such as 'level', use level*3 instead of 3*level. I'll spend some time this week trying to improve things with DicePlus.

foody 05-27-2002 09:49 AM

CocoaSpud are you saying I have to be a C++ programmar before I can even use the spell editor?? @_@

Steve McDonald 05-27-2002 09:21 PM

Richard,

To be able to use brackets in the diceplus expressions would be a great help. It really is essential as even the most basic spells use more complicated diceplus like "1d4+1 per two levels of the caster" - notably magic missile. Thanks for all your work on this.

Cheers for your help with the "help" bit.


All times are GMT -4. The time now is 01:09 AM.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©2024 Ironworks Gaming & ©2024 The Great Escape Studios TM - All Rights Reserved