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)
-   -   Superpowers (http://www.ironworksforum.com/forum/showthread.php?t=99474)

manikus 08-01-2008 06:17 PM

Re: Superpowers
 
This worked fine in my tests, except that I was using a hat (Thinking Cap) that raised intelligence to 21.

Check out Paul's responses on the Yahoo list...

Funky Dynamite 08-01-2008 08:19 PM

Re: Superpowers
 
Quote:

Originally Posted by SilentThief (Post 1211310)
I was having issues with editing effects from items and spells, and thats why I stopped working with it. I can do some tricks (for peanuts or shiny coins :D), but until GPDL is corrected, its functionality is limited to simple tricks.

ST

So have I.

manikus 08-01-2008 08:24 PM

Re: Superpowers
 
As I stated above, I don't think that the GPDL is that broken. :)

I think that we just don't know how to do a lot correctly. :D

By the by- you can use $MyIndex instead of $TargetIndex in the above code. Paul pointed this out as the better way to do it.

Oh, and by the way, not only has Paul spoken up, but so has Richard (CocoaSpud), and while they're not committing to anything, they are both taking a look at the code. :D

Funky Dynamite 08-01-2008 08:58 PM

Re: Superpowers
 
Quote:

Originally Posted by manikus (Post 1211344)
Okay, I've got it now. :D

It is a bit more complicated than what we've been doing. :)

Here is the Activation Script:
Code:

$SET_CHAR_ASL($TargetIndex(),"strength25",25-#$GET_CHAR_STR($TargetIndex()));
$SET_CHAR_STR($TargetIndex(),25);

And the Deactivation Script:
Code:

$SET_CHAR_STR($TargetIndex(),$GET_CHAR_STR($TargetIndex())-#$GET_CHAR_ASL($TargetIndex(),"strength25"));

Cool!
I'll try it tonight....

Funky Dynamite 08-02-2008 07:45 AM

Re: Superpowers
 
Quote:

Originally Posted by manikus (Post 1211344)
Okay, I've got it now. :D

It is a bit more complicated than what we've been doing. :)

Here is the Activation Script:
Code:

$SET_CHAR_ASL($TargetIndex(),"strength25",25-#$GET_CHAR_STR($TargetIndex()));
$SET_CHAR_STR($TargetIndex(),25);

And the Deactivation Script:
Code:

$SET_CHAR_STR($TargetIndex(),$GET_CHAR_STR($TargetIndex())-#$GET_CHAR_ASL($TargetIndex(),"strength25"));

Okay, I tested this, works just beautifilly, thank you. Even works with different numbers too.
But what about other stats, like Charisma? I tried this script with the appropriate changes, and it seems not to work. Is it just me?

manikus 08-02-2008 09:29 AM

Re: Superpowers
 
It should work with any attribute. The actual item that I used to test this out, and that Paul helped me with was for Intelligence. When I was testing $MyIndex (instead of $TargetIndex) I did it for Dexterity. :)

For Charisma it should read:
Code:

$SET_CHAR_ASL($MyIndex(),"Char25",25-#$GET_CHAR_CHA($MyIndex()));
$SET_CHAR_CHA($MyIndex(),25);

And
Code:

$SET_CHAR_CHA($MyIndex(),$GET_CHAR_CHA($MyIndex())-#$GET_CHAR_ASL($MyIndex(),"Char25"));
(For the Activation and Deactivation scripts respectively.)

Funky Dynamite 08-03-2008 10:29 AM

Re: Superpowers
 
Quote:

Originally Posted by manikus (Post 1211441)
It should work with any attribute. The actual item that I used to test this out, and that Paul helped me with was for Intelligence. When I was testing $MyIndex (instead of $TargetIndex) I did it for Dexterity. :)

For Charisma it should read:
Code:

$SET_CHAR_ASL($MyIndex(),"Char25",25-#$GET_CHAR_CHA($MyIndex()));
$SET_CHAR_CHA($MyIndex(),25);

And
Code:

$SET_CHAR_CHA($MyIndex(),$GET_CHAR_CHA($MyIndex())-#$GET_CHAR_ASL($MyIndex(),"Char25"));
(For the Activation and Deactivation scripts respectively.)

Ah, I see what I was doing wrong; I was spelling out "Charisma" I see you have "Char," how do you know what to put there? Like is Intelligence Intell, and Dexitary is Dexit, etc., etc...?

Funky Dynamite 08-03-2008 10:31 AM

Re: Superpowers
 
Oh, BTW, pass onto your friend my immense thanks! :)

manikus 08-03-2008 10:54 AM

Re: Superpowers
 
My "friend" is named Paul R. Stevens and he's one of the original coders of DC. :) He's the guy who created the GPDL engine to run all of these scripts. And all I did was know where to ask. :D He reads the Yahoo list and while he has been pretty inactive for the last couple of years, has announced that he is getting back into DC. :D:D:D In fact he's already been testing submitting new code to the CVS which is the first step towards the next version of DC. :) And to think, if you hadn't asked here, I wouldn't have asked there, and...Paul might have decided not to come back. So, thanks for asking questions. :D:D:D

Arminius 08-03-2008 11:05 AM

Re: Superpowers
 
Ok I see how it works now. I'm gonna start playing around with the GPDL thing and start asking lots of questions about it. Maybe in that way I can help push DC into the next version!


All times are GMT -4. The time now is 12:45 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