NPC spawning problem in Copper Coronet
#1
Posted 21 November 2004 - 02:27 PM
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
Posted 21 November 2004 - 02:31 PM
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#3
Posted 21 November 2004 - 02:54 PM
Yes I have.
#4
Posted 21 November 2004 - 02:59 PM
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
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
Posted 21 November 2004 - 03:09 PM
I bet this is the problem, if it isn't the globals. Are the script you posted in .baf or .bcs format?EXTEND_TOP ~AR0406.bcs~ ~tabby\X#AR0406.bcs~
Yes I have.
Khadion NPC mod - Team leader, head designer
Hubelpot NPC mod - Team leader, coder
NPC Damage - Coder
PC Soundsets - Coder, voice actor
Brythe NPC mod - Designer
DragonLance TC - Glory of Istar - Designer
The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
The Jerry Zinger Show - Producer
Iron Modder 5 - Winner
#7
Posted 21 November 2004 - 03:12 PM
#8
Posted 21 November 2004 - 03:14 PM
What about the global situation I (and StoneWolf! ) pointed out? I'd think that would be the issue.
The great wolf Fenrir gapes ever at the dwelling of the gods.
#9
Posted 21 November 2004 - 03:37 PM
#10
Posted 21 November 2004 - 05:44 PM
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 #.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?
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
Posted 21 November 2004 - 05:57 PM
Pardon my laziness (should have posted), and thank you for the help.
#12
Posted 21 November 2004 - 06:01 PM
Edited by Blitz, 21 November 2004 - 06:01 PM.
#13
Posted 21 November 2004 - 07:35 PM
#14 -Guest-
Posted 21 November 2004 - 07:45 PM
What sets that area variable to 1?
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
Posted 26 November 2004 - 04:17 PM
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.
Edited by Blitz, 26 November 2004 - 04:18 PM.
#16
Posted 26 November 2004 - 05:42 PM
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
Posted 29 November 2004 - 12:43 AM
Community Filename Prefix Reservations
#18
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
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!
Edited by Blitz, 29 November 2004 - 04:38 PM.
#19
Posted 29 November 2004 - 07:31 PM
Yes, he did take both R! and R#. And yes, he did do that on purpose. rpdungeon.net for Rastors mods.I should really point out that R# is Rastors registered modding prefix if that's what you were actually using...
Community Filename Prefix Reservations
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!
#20
Posted 30 November 2004 - 03:38 PM
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!
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.