Aller au contenu

Photo

What happened to my ga_destroy ;s


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
Kossith123

Kossith123
  • Members
  • 96 messages

I was testing my module, which includes me mining a ore vein (done by a convo).

 

On the line; "You successfully mine some Copper ore", I have the actions;

 

ga_givexp
ga_giveitem
ga_destroy

 

These we're working perfectly, but today, I went to test and the ga_destroy just stopped working :s

Anyway to fix this? The tag's are 100% perfect, nothings changed, so I'm pretty much confused lol



#2
Tchos

Tchos
  • Members
  • 5 063 messages

Is there some other placeable somewhere else in your module with the same tag?  If so, that other one might have been destroyed.



#3
Kossith123

Kossith123
  • Members
  • 96 messages

That's the problem, thank you!

 

When I was just testing on 2 ore veins with the same tag, I must of been extremely lucky to have the 1 I mined keep destroying, instead of the other one.

 

Hense why I was so confused >_<



#4
Tchos

Tchos
  • Members
  • 5 063 messages

For ease of use, I'd suggest making a modified script to place on the mining node instead of ga_destroy, that'll work on OBJECT_SELF instead of requiring you to enter an object's tag.  That way it'll always destroy the one you're using.



#5
Kossith123

Kossith123
  • Members
  • 96 messages

I'm no good with scripting, so wouldn't have a clue how to do that sorry, but that would help >_<

I'm using legends spawn with it too, so I can't have my veins with the name "Copper Vein1" "Copper Vein2"



#6
Tchos

Tchos
  • Members
  • 5 063 messages

Well, I was tinkering around with a mining script, myself, but I stalled because I needed to finish the mining pick object for it, but mine would have a chance at failure, a random number of ore chunks received, possible gems, a randomised increase in mining skill, a random number of repeat attempt opportunities, and removal of the mining node when done.



#7
Lance Botelle

Lance Botelle
  • Members
  • 1 480 messages

Hi,

 

What I said was wrong ... :( ... DELETED! ;)

 

Cheers,

Lance.



#8
MERP_UK

MERP_UK
  • Members
  • 96 messages

A touch I have added to my mining nodes is to set the node to non-useable once it has been depleted, rather than outright destroying it. That way you can keep the object where it is for aesthetic needs whilst the player will know that the node has been used already.

 

Don't know how you can manipulate this via legends, but it shouldn't be too difficult. This is only one of several options however, so do whats right for you :)