• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

-ap & -ar

Status
Not open for further replies.
Level 5
Joined
Jul 25, 2008
Messages
155
Hiya, I was wondering how it comes random heroes for players when player red writes -ar, and you can choose yourself when he writes -ap
Would appreciate help ::cool:
 
Level 13
Joined
Nov 4, 2006
Messages
1,239
well if you want -ap just make a normal hero selection system with altar or whatever, if you want it random then use sth like this:

  • Events
    • Player 1 types -ar as an exact match
  • Conditions
  • Actions
    • for each integerA from 1 to 8 do action
    • set chance random number between 1 and 10
    • if chance equal to 1 then create hero 1 for player(integerA)
    • if chance equal to 2 then create hero 2 for player(integerA)
    • if chance equal to 3 then create hero 3 for player(integerA)
    • ...

this is for 8 with 10 different heroes just change the numbers accoding to your needs

Edit sry, didn't notice i left the german expressions
 
Last edited:
Status
Not open for further replies.
Top