Jump to content


Photo

NPC spawning problem in Copper Coronet


  • Please log in to reply
19 replies to this topic

#1 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 02:27 PM

IF
Global("R#Tabi","AR0406",1)
THEN
RESPONSE #100
SetGlobal("RTabi","AR0406",2)
CreateCreature("r#tiva",[900.803],3)
END

For some reason, the NPC won't spawn. All variables are set correctly. What is wrong?

#2 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 21 November 2004 - 02:31 PM

Have you used EXTEND_TOP to append the existing ar0406.bcs?

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#3 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 02:54 PM

EXTEND_TOP ~AR0406.bcs~ ~tabby\X#AR0406.bcs~

Yes I have. :(

#4 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 21 November 2004 - 02:59 PM

Are you sure you're setting your inital global R#Tabi to 1? Normally you would have it start at zero (since all globals read as zero unless modified) and up it to one to stop it.
IF
Global("R#Tabi","AR0406",0)
THEN
RESPONSE #100
SetGlobal("RTabi","AR0406",1)
CreateCreature("r#tiva",[900.803],3)
END

Try that. You can also extend it as an uncompiled .baf file instead of a .bcs snippet.
EXTEND_TOP ~AR0406.bcs~ ~tabby\X#AR0406.baf~

It's easier, quicker, and better for debugging. ;)

The great wolf Fenrir gapes ever at the dwelling of the gods.


#5 Stone Wolf

Stone Wolf
  • Member
  • 1672 posts

Posted 21 November 2004 - 02:59 PM

IF
Global("R#Tabi","AR0406",1)

How is this variable being set? Are you sure it's getting set to 1?

EDIT: /shakes fist at Hlidskialf

Beat me by less than a minute, damn you! :bash:

Edited by Stone Wolf, 21 November 2004 - 03:04 PM.


#6 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 21 November 2004 - 03:09 PM

EXTEND_TOP ~AR0406.bcs~ ~tabby\X#AR0406.bcs~

Yes I have.  :(

I bet this is the problem, if it isn't the globals. Are the script you posted in .baf or .bcs format?

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#7 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 03:12 PM

I'll try using a BAF...

#8 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 21 November 2004 - 03:14 PM

It doesn't HAVE to be in .baf format, it's just easier. If you've done it via .bcs it should still work.
What about the global situation I (and StoneWolf! :P ) pointed out? I'd think that would be the issue.

The great wolf Fenrir gapes ever at the dwelling of the gods.


#9 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 03:37 PM

I've checked globals...it still refuses to work. I'll keep trying.

#10 neriana

neriana
  • Member
  • 139 posts

Posted 21 November 2004 - 05:44 PM

IF
  Global("R#Tabi","AR0406",1)
THEN
  RESPONSE #100
    SetGlobal("RTabi","AR0406",2)
    CreateCreature("r#tiva",[900.803],3)
END

For some reason, the NPC won't spawn. All variables are set correctly. What is wrong?

View Post

Is this the exact code? If so, you've got two different globals when you should only be dealing with one. You're missing a #.

As for not spawning, we probably will need a bit more info here. What's in your .tp2? Are you using a saved game that has already loaded the Copper Coronet?

Edited by neriana, 21 November 2004 - 05:55 PM.


#11 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 05:57 PM

Oh, sorry! I fixed this awhile ago!

Pardon my laziness (should have posted), and thank you for the help.

#12 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 21 November 2004 - 06:01 PM

EDIT: And forgive me for posting that twice :huh:

Edited by Blitz, 21 November 2004 - 06:01 PM.


#13 Stone Wolf

Stone Wolf
  • Member
  • 1672 posts

Posted 21 November 2004 - 07:35 PM

What sets that area variable to 1?

#14 -Guest-

-Guest-
  • Guest

Posted 21 November 2004 - 07:45 PM

What sets that area variable to 1?

View Post


It used to be a conversation with another NPC, but it doesn't matter now, because I changed it so that liva is always there (can't be talked to about quest until another var is set, though).

It's fixed now. Asides from some global var typos, I was trying to summon a creature that didn't exist. I wanted tivas. I put tiva.

#15 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 26 November 2004 - 04:17 PM

Okay, I have another problem. I can't get a group of NPCs to spawn in the sewers beneath the temple district.

IF
Global("R#Plot",GLOBAL",10)
THEN
RESPONSE #100
SetGlobal("R#Plot","GLOBAL",11)
CreateCreature("r#tiva",[2936.517],5)
CreateCreature("r#kaen",[3047.563],5)
CreateCreature("r#csold",[2429.893],5)
CreateCreature("r#csold",[2460.948],5)
CreateCreature("r#csold",[2398.933],5)
CreateCreature("r#csold",[2341.958],5)
CreateCreature("r#csold",[2365.996],5)
CreateCreature("r#csold",[2288.987],5)
CreateCreature("r#csold",[2314.1022],5)
CreateCreature("r#ccent",[2486.889],5)
END

I checked my globals, and they're fine. So are the names of the creatures i'm creating.
To get spawning in the thief guild, I had to put...

COPY_EXISTING ~ar0305.are~ ~override~
WRITE_ASCII 0x94 ~ar0305~

...in the .tp2 file to get it to work. Are the sewers a similar situation? Or is there some hidden typo i'm missing in the CreateCreature code?

Just when I thought I had this thing down, it shoots me in the foot. :rolleyes:

Edited by Blitz, 26 November 2004 - 04:18 PM.


#16 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 26 November 2004 - 05:42 PM

Woah...I fixed it.

I forgot the " near the GLOBAL.

Yes! I fixed one of my own mistakes! Declare a national freakin' holiday! Hoo-ya!

*Runs around in circles chanting 'koo-ya-la'

#17 maximize

maximize
  • Member
  • 37 posts

Posted 29 November 2004 - 12:43 AM

I should really point out that R# is Rastors registered modding prefix if that's what you were actually using...

Community Filename Prefix Reservations

#18 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 29 November 2004 - 04:36 PM

I should really point out that R# is Rastors registered modding prefix if that's what you were actually using...

Community Filename Prefix Reservations

View Post


WHAT?! WHAAAAAAAAAT?! NOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!

What mods has Rastor released? I don't think i've heard of him...


EDIT: Hey! That little spaz stole both R! and R#

HE DID IT ON PURPOSE! :D

Edited by Blitz, 29 November 2004 - 04:38 PM.


#19 maximize

maximize
  • Member
  • 37 posts

Posted 29 November 2004 - 07:31 PM

I should really point out that R# is Rastors registered modding prefix if that's what you were actually using...

Community Filename Prefix Reservations

View Post


WHAT?! WHAAAAAAAAAT?! NOOOOOOOOOOOOOOOOOOOOOOOOOO!!!!!!!!!!

What mods has Rastor released? I don't think i've heard of him...


EDIT: Hey! That little spaz stole both R! and R#

HE DID IT ON PURPOSE! :D

View Post

Yes, he did take both R! and R#. And yes, he did do that on purpose. :P rpdungeon.net for Rastors mods.

#20 Blitz

Blitz

    Tabby Master

  • Member
  • 337 posts

Posted 30 November 2004 - 03:38 PM

Why did he take both of them?!


Rrrrr...

Oh, well. Now I have to change all mine to B# or something.

Nobody steal it or I will flame you back to the stone age! :D

EDIT: Oh yeah, and I asked them to put B# on the list for me.

EDIT Deux: They put B# on the list! Woo-hoo!

Edited by Blitz, 06 December 2004 - 08:40 AM.