Author Topic: Ability Score/Energy Level Drain - How do you check?  (Read 1601 times)

Offline Diana

  • Neophyte
  • Planewalker
  • *****
  • Posts: 251
  • Gender: Female
Ability Score/Energy Level Drain - How do you check?
« on: February 25, 2005, 03:41:47 PM »
 ??? I looked at both state.ids and stats.ids and saw no keyword that looked anything like a test for this.

Thanks.

Offline Andyr

  • Dance Commander
  • PPG
  • Planewalker
  • *****
  • Posts: 3178
  • Gender: Male
    • The Gibberlings Three IE mod community
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #1 on: February 25, 2005, 04:55:40 PM »
Depends on what exactly you want it for... Something like this might work but would be messy on a large scale:

- Have a script check stats for the PC on creation/party members on joining.
- Have it set globals to equal the stat(s) you are interested in. And stop the check repeating.
- Have your check check the stats again, and compare the values of the globals (I think there is a command to compare values).

This way you'd also be able to check stat/level increases.
"We are the Gibberlings Three, as merry a band as you ever did see..." - Home of IE mods

<jcompton> Suggested plugs include "Click here so Compton doesn't ban me. http://www.pocketplane.net/ub"

I am unfortunately not often about these days so the best way to get hold of me is via email.

Offline Diana

  • Neophyte
  • Planewalker
  • *****
  • Posts: 251
  • Gender: Female
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #2 on: February 25, 2005, 05:18:08 PM »
I want to script a controlled creature - familiar-type, to run away if it has been attacked by Vamps or Shadows if they have done the enegy drain/level drain action on it.

Probably easier to script the creature to run away if it sees Vamps or Shadows.
« Last Edit: February 25, 2005, 05:19:43 PM by Diana »

Offline Avenger_teambg

  • Planewalker
  • *****
  • Posts: 399
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #3 on: February 26, 2005, 08:11:34 AM »
??? I looked at both state.ids and stats.ids and saw no keyword that looked anything like a test for this.

Thanks.
You can find it in stats.ids

200 LEVELDRAIN

Offline Diana

  • Neophyte
  • Planewalker
  • *****
  • Posts: 251
  • Gender: Female
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #4 on: February 26, 2005, 12:50:18 PM »
Muchas gracias, merci beaucoup and all that jazz!

Offline Avenger_teambg

  • Planewalker
  • *****
  • Posts: 399
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #5 on: February 26, 2005, 02:35:52 PM »
Does it work?

Offline Diana

  • Neophyte
  • Planewalker
  • *****
  • Posts: 251
  • Gender: Female
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #6 on: February 26, 2005, 04:00:51 PM »
Don't know yet.  I added the test to the script but I'm not now in an area with vamps or Shadow Fiends.

I've added this part to a scripting block for the creature I want to test it on

IF
CheckStatGT(Myself,5,LEVELDRAIN)
THEN
RESPONSE #100
DisplayStringWait(Myself,~Level Drain - W Block 5~)
PauseGame()

etc.

and I'm waiting to see if it will work.  I didn't see a number range for LEVELDRAIN so I'm taking '5' as what I've seen from examples using FATIGUE.
« Last Edit: February 27, 2005, 10:18:27 AM by Diana »

Offline Avenger_teambg

  • Planewalker
  • *****
  • Posts: 399
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #7 on: February 27, 2005, 12:46:09 PM »
I think you better use checkstatgt 0, as fatigue is a much cheaper effect.

Offline Diana

  • Neophyte
  • Planewalker
  • *****
  • Posts: 251
  • Gender: Female
Re: Ability Score/Energy Level Drain - How do you check?
« Reply #8 on: February 28, 2005, 08:36:29 AM »
Thanks - shall do! Yep, it works!  The 'familiar type .cre exhibits distress now since I coded the check in its script.  With a familiar you don't see the icon like on an npc.  Thanks a million!
« Last Edit: February 28, 2005, 06:02:51 PM by Diana »

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: