• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Gamble?

Status
Not open for further replies.
Level 8
Joined
Jan 18, 2007
Messages
331
how do i recreate a copy of a spell called Gamble in the most AngelArenas? wen pushcased you got 50-80% of getting an item. i know that i can use a combination of some intrigers but how? thanx for any future posts.
 
Level 19
Joined
Nov 16, 2006
Messages
2,165
Create an ability based on a book (to buy).
Make sure the book doesn't add any stats.
Create the following trigger:
  • Gamble
    • Events
      • Unit - A unit Sells an item (from shop)
    • Conditions
      • (Item-type of (Sold Item)) Equal to Tome of Experience (Gamble)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Random integer number between 10 and 100) Less than or equal to 30
        • Then - Actions
          • Item - Create (Random level 1 item-type) at (Your Position)
        • Else - Actions
          • Do nothing
(Random integer number between 10 and 100) Less than or equal to 30
-> 30 = 30% chance so if u want 80% chance then change 30 to 80, and so on.
You can modify the items.
 
Status
Not open for further replies.
Top