Buying Heros

  • Thread starter Thread starter Nenad
  • Start date Start date
N

Nenad

Guest
How can i make that when u buy a hero its created at some location and how can i disable any other hero buying for the player that has bought a hero?
 
To have only one hero, you must limit training of heroes to 1, via trigger. Have it go off at Map Init.

Now, for the other part, it's a little more complicated. I take it you want something like "You buy a hero, it goes to buyer's starting location." right?

E: A unit buys a unit
C: Unit-type of bought unit is equal to a hero
A: Move bought unit to Starting location of owner of buying unit

Something like that :P Don't have the editor up, so that's not exact wording, but if you try, you'll find the parts.

Good luck.
 
1-*-

2.Do You mean that nobody else can't select the same hero, what some other has allready taken?
If you did, you should use trigger what removes it from the shop.

So Something like that :P
 
I meant that if u choose a hero u cant choose any other and no1 can choose him too
 
GorLEs said:
1. It Goes something like this
Don't Mind About Things in --{-- --}--....cuz i copied my random-hero trigger ( well the actions if it ) :P

Unit - Create 1 --{-- ---Some--- [(Random integer number between 1 and ---Some---)] --}-- for (Owner of (Sold unit)) at ((Owner of (Sold unit)) start location) facing Default building facing degrees

Erm, no?

He's already bought the unit. Therefore, you don't need to MAKE anything, it's right there :P All he needs, or is asking for is a way to MOVE the BOUGHT UNIT to a certain place. Which I have given the code for :)

No offense, just pointing out the truth.

Have a nice day.

-Edit-

Oh, well, in that case, at Map Init, limit the training of heroes to 1, and then have a SECOND trigger to, as the post before (which I quoted) states, remove the hero from the shop, after it is bought. :D

-Also-

Registering is always a grand idea :) People tend to answer faster to members, so if you plan to have a lot of questions, off to registration you should go ;)
 
click the button of the left munu bar that says hero taverns, it explains everything. Plese look and search before asking questions.
 
1 more thing how can i make an autocast magic not autocast so i can cast say slow but i cant turn on auto cast
 
Hmm, the best thing I could offer is to try to find an Item version of the spell. Or use something like Cripple, which slows and does damage, and set the damage to 0. :P

Choice one:
Find an item version of the ability.
Choice two:
Find a SIMILAR ability that slows, but is no autocast.
Choice three, which I don't like, but it IS there:
Don't tell people it's autocastable :P Delete the tooltip saying "Right click to auto-cast" and maybe you'll get lucky and people will never try it, lol!
 
If you change the icon that is so theres no corners, but i often accidentall right click on abilities.
 
Yes, that goes along with that third, but not great choice...Personally, I don't advise that one, because people tend to find bugs EVERYWHERE! :P Since the example you gave me was slow, the best idea would be to, as I said:

Make a custom Cripple.
Take away the damage.
Modify the speed/attack movement reducers/duration/etc.
 
Im having some problems

1.I cant work out the movement of the heroes when there bought if u can plz post in a trigger msg

2.Good on slow but how do i do immolation now i was thinking from the cloak of immolation but not sure ill go check

P.S im gonna register good advice im gonna need a lot more help
 
Alexander said:
Erm, no?

He's already bought the unit. Therefore, you don't need to MAKE anything, it's right there :P All he needs, or is asking for is a way to MOVE the BOUGHT UNIT to a certain place. Which I have given the code for :)

No offense, just pointing out the truth.

Have a nice day.

Whoopsie..True :eek:
 
when a unit buy a hero and u want no one else cant get him u need the trigger


unvaible vaible

unit make unvaible for picked unit.

done if u dont understand i open the w3 and put for the trigger code..
 
Ok i done most of the things but i still cant get a hero to show on the start location som1 plz gimme a trigger
 
Hows this?

Create a new boolean variable, set it as an array with a size of the number of possible players.
In my example, this boolean variable is v_hashero

Events
Unit - A unit Sells a unit

Conditions
(Unit-type of (Triggering unit)) Equal to ===Structure that Sells Heroes===

Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
v_hashero[(Player number of (Owner of (Sold unit)))] Not equal to True
Then - Actions
Set v_hashero[(Player number of (Owner of (Sold unit)))] = True
Unit - Move (Sold unit) instantly to (Center of (===enter your region here===))
Else - Actions
Player - Set (Owner of (Sold unit)) Current gold to (((Owner of (Sold unit)) Current gold) + (Point-value of (Sold unit)))
Unit - Remove (Sold unit) from the game

Just make sure that the point value of every hero is equal to their gold cost so they dont loose the cash for trying to buy another.
 
I got an easier way...at map initialization...give 5 food to all players...and since for default heroes cost 5 food, they won't have enough food for other heroes :D
 
That has many problems. What if the map requires him to be able to have more then 5 food, such as a melee game? And it doesn't fix his problem of only wanting 1 of each hero on the map.

Use the suggestions I listed...They're there for a REASON...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    Happy Thursday!
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    we were down for a minute - think a log file or something got too big
    +1
  • Ghan Ghan:
    The alerts say it was down for a while unfortunately.
  • Ghan Ghan:
    Didn't know what was going on while I was at work.
  • Ghan Ghan:
    Disk filled up with logs. Fixed now.
    +1
  • The Helper The Helper:
    not a problem at all thanks for getting us back up
  • The Helper The Helper:
    I think the bots are finding a way to get through the anubis
  • The Helper The Helper:
    Happy Wednesday Everyone! Hope everyone has a Fantastic Day!
    +1
  • The Helper The Helper:
    Yeah, stats are showing big bot influx like 12k page views.
  • Wizard Wizard:
    :wave:
    +1
  • Ghan Ghan:
    TH changed his avatar again. 6 more weeks of summer.
    +3
  • Wizard Wizard:
    lol
    +1
  • The Helper The Helper:
    Guys just a heads up I am going to be shutting the site down soon. I am just waiting on the NUON people to decide whether they want to transfer forum data and keep the discord. My email is [email protected] for anyone that wants to keep in touch and I have a facebook too. I will make an official post later. Love you guys and will miss everyone!
    +1
  • V-SNES V-SNES:
    Sent a pm @The Helper
  • Stephen Stephen:
    Oh no - please don't lose the Nuon content
    +1
  • The Helper The Helper:
    Someone email AtariAge and see if they want me to transfer the forum data over to it
  • Ghan Ghan:
    Could probably keep NUON stuff around here if we wanted.
  • Ghan Ghan:
    Hmm what to do about the World Editor site though?
  • Stephen Stephen:
    I'd rather personally just own a backup of the Nuon data than see it go to AtariAge honestly. If it gets enshittified as per usual, or if some of the "regular" Jaguar folks get there, it's not gonna be fun
  • The Helper The Helper:
    There will be a github of the forum data so the NUON Forum Data I guess would be available there
  • The Helper The Helper:
    World Editor is technically Ryoko stuff not mine you guys can keep that I am not in that even
  • jonas jonas:
    :( end of an era :(
  • The Helper The Helper:
    Dont think of it as an end jonas - think of it as a beginning, because really my friend that is what it is.

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top