Jump to content


Photo

Item help


  • Please log in to reply
7 replies to this topic

#1 icelandismine

icelandismine

    Support your 2nd Amendment rights!

  • Member
  • 280 posts

Posted 20 July 2004 - 09:17 AM

I want to make a character, that if he doesn't have a certain item equipped, he takes 1 damage/second. Can I do that without scripting, and if I can't, how can I do it?
"What's wrong with being a trigger-happy, nationalistic, meat-eatin' neo-con who likes to shoot things, shoot 'em dead?"
-Me

"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton

#2 Andyr

Andyr

    HERR RASENKOPF

  • Member
  • 2318 posts

Posted 20 July 2004 - 10:42 AM

Scripting would be an easy method. This may be the wrong syntax, but off the top of my head this in their script:

IF
!HasItemEquipped("whatever",Myself)
Global("something","LOCALS",0)
THEN
RESPONSE #100
SetGlobal("something","LOCALS",1)
END

IF
Global("something","LOCALS",1)
THEN
RESPONSE #100
ReallyForceSpellRES("spellthatdoesdamage",Myself)
END

IF
HasItemEquipped("whatever",Myself)
THEN
RESPONSE #100
SetGlobal("something","LOCALS",0)

Your spell would be one that does 1 damage per second. Else you could use a timer and just make a spell doing one damage which the script recasts each second, or similar.

Hope this helps. :)
"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"

#3 icelandismine

icelandismine

    Support your 2nd Amendment rights!

  • Member
  • 280 posts

Posted 20 July 2004 - 03:01 PM

That looks good, but what am I supposed to put in place of something, myself, and wherever?
"What's wrong with being a trigger-happy, nationalistic, meat-eatin' neo-con who likes to shoot things, shoot 'em dead?"
-Me

"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton

#4 Andyr

Andyr

    HERR RASENKOPF

  • Member
  • 2318 posts

Posted 20 July 2004 - 03:13 PM

whatever = the item file name that the person needs to have equipped.

something = just any name you want to use for your variable. Tom, Dick, Harry... :) Whatever. As long as you're consistent.

Myself is what needs to be there, just as I wrote it - this is what the engine uses to be 'The creature running the script'.
"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"

#5 icelandismine

icelandismine

    Support your 2nd Amendment rights!

  • Member
  • 280 posts

Posted 20 July 2004 - 03:51 PM

Thanks! (Opens up BGII)
"What's wrong with being a trigger-happy, nationalistic, meat-eatin' neo-con who likes to shoot things, shoot 'em dead?"
-Me

"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton

#6 icelandismine

icelandismine

    Support your 2nd Amendment rights!

  • Member
  • 280 posts

Posted 20 July 2004 - 04:11 PM

Im getting a parsing error on it.

[IM#MASK.baf] PARSE ERROR at line 2 column 34-34
Near Text: )
[HasItemEquipped] not found in TRIGGER.IDS

Pleaseeee someone make it work!
"What's wrong with being a trigger-happy, nationalistic, meat-eatin' neo-con who likes to shoot things, shoot 'em dead?"
-Me

"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton

#7 Andyr

Andyr

    HERR RASENKOPF

  • Member
  • 2318 posts

Posted 20 July 2004 - 04:54 PM

You might want to check the IESDP for a list of scripting actions and stuff - that was only from memory. Til TeamBG returns the IESDP is at Gibberlings Three. :)

I know HasItem is a trigger but don't recall if that checks to see if it's equipped or not.
"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"

#8 icelandismine

icelandismine

    Support your 2nd Amendment rights!

  • Member
  • 280 posts

Posted 21 July 2004 - 09:59 AM

I got it to parse-its equiped, not equipped. It works! The only problem is, that when i equip the item, he still takes damage.
thanks.
"What's wrong with being a trigger-happy, nationalistic, meat-eatin' neo-con who likes to shoot things, shoot 'em dead?"
-Me

"It is foolish and wrong to mourn the men who died. Rather we should thank God that such men lived."
- General George S. Patton