Author Topic: GPDL scripting questions  (Read 381 times)

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: GPDL scripting questions
« Reply #15 on: April 02, 2017, 02:58:41 PM »
Another thing - $GET_LEVEL_STATS_ASL() exists in the documentation http://www.dianneandpaul.net/UAF/Help/GPDL%24GET_LEVEL_STATS.html but not in the actual scripting engine. How do you get level ASL's?

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: GPDL scripting questions
« Reply #16 on: April 02, 2017, 06:42:36 PM »
It appears that we:

1) Replaced $SET_LEVEL_STATS_ASL with $SET_LEVEL_ASL

2) Never bothered to implement any of the LEVEL_ASL functions.

So.....It will have to be a feature request.  You can ask Manikus to
put it somewhere in his queue.

(You might be able to reference these using Logic Block event.) ???

Offline marainein

  • Sr. Member
  • ****
  • Posts: 372
Re: GPDL scripting questions
« Reply #17 on: April 03, 2017, 02:58:29 AM »
$SET_LEVEL_STATS_ASL() is in there, but without a corresponding get function I don't know if it works. I noticed the problem a month ago when I started writing this, and just used the global ASL instead, figuring 'there must be a function to get level ASL's - I'll figure it out later'

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9718
Re: GPDL scripting questions
« Reply #18 on: April 03, 2017, 02:23:31 PM »
Paul's documentation says there is a function "$IF_LEVEL_STATS_ASL", but if "$SET_LEVEL_STATS_ASL" has been changed to "$SET_STATS_ASL", so maybe Paul changed this one too?
You can try "$IF_LEVEL_STATS"...

This same documentation says that this, "$String $GET_LEVEL_STATS_ASL(String, String)" is a thing...

http://www.dianneandpaul.net/UAF/Help/GPDLListOfFunctions.html

I also don't see the CHAR_ASL functions listed...
I have in my help docs (which always defer to Paul's by the way) have the following ASL related functions:

$GET_CHAR_ASL( String, String )
$SET_CHAR_ASL( String, String, String )
$IF_CHAR_ASL( String, String )

$GET_PARTY_ASL( String )
$SET_PARTY_ASL( String, String )
$IF_PARTY_ASL( String )
$DELETE_PARTY_ASL( String )

$GET_GLOBAL_ASL( String )
$SET_GLOBAL_ASL( String, String )

$GET_LEVEL_STATS_ASL( String, String )
$SET_LEVEL_STATS_ASL( String, String )
$DELETE_LEVEL_STATS_ASL( String, String )
$IF_LEVEL_STATS_ASL( String, String )

I know at least one of these is wrong. Can you tell me which of the rest work?

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: GPDL scripting questions
« Reply #19 on: April 03, 2017, 04:43:38 PM »
'Y' means that the function is supposed to work.
'N' means no code exists to implement the function.

Y--$GET_CHAR_ASL( String, String )
Y--$SET_CHAR_ASL( String, String, String )
Y--$IF_CHAR_ASL( String, String )

Y--$GET_PARTY_ASL( String )
Y--$SET_PARTY_ASL( String, String )
Y--$IF_PARTY_ASL( String )
Y--$DELETE_PARTY_ASL( String )

Y--$GET_GLOBAL_ASL( String )
Y--$SET_GLOBAL_ASL( String, String )

N--$GET_LEVEL_STATS_ASL( String, String )
Y--$SET_LEVEL_STATS_ASL( String, String )
Y--$DELETE_LEVEL_STATS_ASL( String, String )
N--$IF_LEVEL_STATS_ASL( String, String )

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9718
Re: GPDL scripting questions
« Reply #20 on: April 04, 2017, 01:24:37 PM »
Thank you, Paul.

You said above that $SET_LEVEL_STATS_ASL() is now $SET_LEVEL_ASL(). Does that mean that $DELETE_LEVEL_STATS_ASL() is now $DELETE_LEVEL_ASL()?

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2204
Re: GPDL scripting questions
« Reply #21 on: April 04, 2017, 01:38:08 PM »
Quote
You said above

I should not have said it, above or below.  I was mislead by some
unused definitions in the code.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9718
Re: GPDL scripting questions
« Reply #22 on: April 04, 2017, 05:47:57 PM »
Quote
You said above

I should not have said it, above or below.  I was mislead by some
unused definitions in the code.

Fair enough. :)

 

anything