• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

How to create a hero wars betting system?

Status
Not open for further replies.
Level 2
Joined
Feb 21, 2010
Messages
12
Hello, I would like to do hero wars type map but don't know how to create a betting system and i can't seem to be able to open other hero wars maps to check out how...Can someone help me please? Thank you very much.
 
Level 4
Joined
Mar 20, 2010
Messages
107
If I recall right, then I think a betting system is pretty hard to make. I've one myself on my own Hero Wars map i made from the scratch a year ago, gonna try to see if I can find it - but most likely it's in my old laptop that crashed :/
All i remember is that this can be used for a part of it.

  • Events
  • Dialog - A dialog button is clicked for Placebets
  • Conditions
  • (Clicked dialog button) Equal to fiftygoldlight(thats a variable you need to make)
  • Actions
  • Player - Add -50 to (Triggering player) Current gold
  • Player Group - Add (Triggering player) to fiftygoldlight1(group for those that have betted 50 gold)
  • Set Totalbetlight = (Totalbetlight + 1) (2 more variables)
to make the variables, go to the Variables window.
Make a new variable named Placebets of the type Dialog. Initial Value = New Dialog (Default)
Make another one named fiftygoldlight of the type Dialog Button. Leave value at -None-.
Another variable named fiftygoldlight1 of the type Player Group with Initial Value: Empty Player Group (Default)
Make a variable named Totalbetlight with the type Integer, initial value = 0 (Default)
For the:
  • Actions
  • Set Totalbetlight = (Totalbetlight + 1)
Choose totalbetlight for the first, at "Totalbetlight + 1" use the action Set Variable. At Totalbetlight + 1 use Arithmetic and choose the Totalbetlight then do + 1.

Then all you have to do is to "connect" it to the other triggers, for example when your duel starts. You should use:
  • Events
  • Time - timer expires (if you use a timer for duels)
  • Actions
  • Player Group - Pick every player in playergroup(your first team) and do (Dialog - Show Placebets for (Picked Player))
And yes, I suck at this. And yes, it probebly looks messy :wink: All i can do on short notice tho :smile:

Good luck with the map, and please say if there is something in what I said you didnt understand and I will try to explain it :wink:
 
Level 2
Joined
Feb 21, 2010
Messages
12
A betting system is a system where two people fight in an arena. The better can then choose whether to vote on the Light side or the Dark side. He then can chose how much money he is willing to bet. I am having trouble combining the two dialogs...
 
Level 2
Joined
Feb 21, 2010
Messages
12
I understand how to combine the two dialogs, like how to go from one to another but I'm haveing trouble with something else. I'll give you an example.

I create my first dialog named "Who do you want to vote for?" with 2 dialog buttons "Red" and "Blue"

Second of all, I create a second dialog named "How much will you bet?" with 4 dialog buttons labeled "1 000","2 500","5 000" and "10 000".

For example, lets say blue wins the fight and the player betted 5 000. In that case the better would lose the 5 000 just before the fight and he gets 10 000 at the end so he wins 5 000 gold by betting. I can't find a way to make two dialog conditions. Sorry if it was not clear enough and +rep for trying to help.
 
Status
Not open for further replies.
Top