Jump to content
Echon

Create Inventory Item [122]

Recommended Posts

Do you want e.g 50% chance that item is created and 50% chance that it fails

or

50% that item1 is created and 50% chance that item2 is created

 

I have used both options in the past, however I always built the probability into the script that calls the respective spell. I never tried the first variation to be inside the spell itself.

Share this post


Link to post

I did not use the effect via a spell, but attached it directly to a creature. That way it always succeeded. It looks like I will need to use your implementation to add the random element.

Share this post


Link to post

I did not use the effect via a spell, but attached it directly to a creature. That way it always succeeded. It looks like I will need to use your implementation to add the random element.

In which case you would not even need the opcode, just a simple script with a probability for the GiveItemCreate("random1",Myself,1,0,0) Action.

Share this post


Link to post

Or that. I had forgotten about the GiveItemCreate action. Thanks.

Share this post


Link to post

So, the original statement of this topic doesn't hold anymore.

 

Why not? I have simply found a way to avoid the issue.

Share this post


Link to post

 

So, the original statement of this topic doesn't hold anymore.

 

Why not? I have simply found a way to avoid the issue.

 

 

"I did not use the effect via a spell, but attached it directly to a creature. "

 

Ever managed to use probabilities in an embedded effect?

Share this post


Link to post
Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...