Author Topic: Effective use of MakeGlobal()  (Read 1811 times)

Aegnor

  • Guest
Effective use of MakeGlobal()
« on: February 10, 2005, 03:16:23 AM »
Ok, so I'm working on a familiar mod. Well all of a sudden nothing would work, the summoned familiar wasn't made global. It would not follow through areas.

Later figured out that this was because of me changing the death variables, and that MakeGlobal() and MoveGlobalObject() both targets the death variable and not the cre name.

A couple of minutes later, I figured out a use for this. Since I changed ALL the familiars death variables, I could from there both make global and move the familiar in two script blocks, no matter what sort of familiar I summoned.

Example:
Quote
// After I make weidu patch all the familiars' death variables, and have summoned one of the familiars.

IF
  Global("DKDMakeGlobal","GLOBAL",1)
THEN
    RESPONSE #100
             SetGlobal("DKDMakeGlobal","GLOBAL",2)
             ActionOverride("familiar",MakeGlobal())
END

IF
       !Dead("famdust")
       !Global("DKDFamStayHere","GLOBAL",1)
       !Global("DKDFamInPack","GLOBAL",1)
       !InMyArea("familiar")
THEN
    RESPONSE #100
        MoveGlobalObject("familiar",Player1)
END
« Last Edit: February 10, 2005, 03:18:55 AM by Aegnor »

Offline Ghreyfain

  • PPG
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Effective use of MakeGlobal()
« Reply #1 on: February 10, 2005, 10:50:16 AM »
Huh, I checked my IDS and it doesn't even have MakeGlobalObject() in it.  But yeah, unless you're creating the creature, it's the script name/death variable that gets checked for things like that.
Earn Money Sleeping.

Offline SimDing0™

  • Back In Black
  • Global Moderator
  • Planewalker
  • *****
  • Posts: 3496
  • Gender: Male
  • Word Enhancer
Re: Effective use of MakeGlobal()
« Reply #2 on: February 10, 2005, 10:57:42 AM »
MoveGlobalObject, Ghrey. :)

Offline Ghreyfain

  • PPG
  • Planewalker
  • *****
  • Posts: 4705
  • Gender: Male
    • Pocket Plane Group
Re: Effective use of MakeGlobal()
« Reply #3 on: February 10, 2005, 11:02:18 AM »
Oh.

Shit.

I, uh... just woke up.
Earn Money Sleeping.

Offline Andyr

  • Dance Commander
  • PPG
  • Planewalker
  • *****
  • Posts: 3178
  • Gender: Male
    • The Gibberlings Three IE mod community
Re: Effective use of MakeGlobal()
« Reply #4 on: February 10, 2005, 03:17:21 PM »
I use a similar method to the first poster in the Elai mod, though I have a Range check rather than an InMyArea check for other reasons.
"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.

 

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)?: