hero holding item

  • Thread starter Thread starter xvirus666
  • Start date Start date
X

xvirus666

Guest
ok, i am still working on my loap map and decided i will have an area where you can play a "virtual reality game". first, you go to "game stop", buy "diablo 2", then, there will be a beacon in game stop. you have to step on the beacon (with diablo 2 in your inventory) with your hero and type "-play diablo 2" and you will be able to play. so, i made some conditions that i thought were going to work (here is the trigger {i didnt put actions}:

Code:
Player - Player 1 (Red) types a chat message containing -play diablo 2 as An exact match

(game play <gen> contains (Triggering unit)) Equal to True
((Unit-type of (Triggering unit)) is A Hero) Equal to True
(Picked item) Equal to (Item carried by (Triggering unit) of type Diablo II)
)

...but they didnt. which conditions (or maybe events too) should i use to make it so you need to have diablo 2, your hero on the beacon, and type "-play diablo 2"???
 
Hmm i am not sure if triggering unit is the right thing for the unit conditions because the unit doesn't trigger anythig its the player typing something
 
Also just something that i would think would work better is having the item (diablo 2) be an ability so when you click it and your in the correct area you play the game. ( just have the ability do nothing)
 
I am not sure what it should be but that doesn't seem like it would be right sorry :(
 
Going along with what i said about the item being an ability have the item be an ability that targets a specific unit then try this. The target of the spell must be only the unit with the item.
HTML:
    Events
        Unit - A unit owned by Player 1 (Red) Begins casting an ability
    Conditions
        (Ability being cast) Equal to Banish
        (Region 000 <gen> contains (Target unit of ability being cast)) Equal to True
    Actions
what ever
of course your going to have to change the ability being cast to whatever your item ability is and same with the region. This might not be the best way to do it but it might work.
 
picked item is not some kind of magical function it only works inside "Pick every item in rect" statements.

You should use Hero has item of type or Hero has item depending on the situation
 
Vexorian said:
picked item is not some kind of magical function it only works inside "Pick every item in rect" statements.

You should use Hero has item of type or Hero has item depending on the situation

i tried that, and none of the options for the "item" part. some were "last created" or "last sold" but, what if the player bought 2 items, then what?

i think the ability idea is good... except a few minorities. when does the hero get the ability? when he steps on the beacon? second, what if the hero's ability spaces (not the ones you research but the ones next to "move","stop","hold position", etc) are full?
 
<when does the hero get the ability?
<what if the hero's ability spaces are full?

You can have the item that you bye have the ability. That way you still have to pay and no ability space is wasted. Use a non targatble ability as base and set it vaules to "do nothing" vaules.
 
dammit, i cant make the item use the ability... what i did was

1. make an item called diablo 2
2. under abilities, (remember we are still on the item part) i put an ability named "diablo 2"

what am i supposed to do next (remember i am not good at wc3 maps...) :banghead:
 
You have to put Stats - Actively Used to true, also it is good to set Stats - Number Of Charges to a vaule bigger that 0 so the item dissaperes by itself when you have played the minigame a couple of times.

The use a trigger simular to the one HoboJoe_5 posted, just change the vaules to your vaules and make the event Generic so it works for all players

Code:
Unit - A unit Starts the effect of an ability
 
to make the ability, i had to use another as a starting point. so, i used aerial shackles. i removed all of the buffs that had to do with aerial shackles but it still uses that spell. so when i use the ability, 1. the trigger makes the hero invulnerable while playing diablo 2 (minigame) and 2. the hero cant move. maybe theres a action on the part of a trigger that can remove the spell or try and find a different way?
 
xvirus666 said:
to make the ability, i had to use another as a starting point. so, i used aerial shackles. i removed all of the buffs that had to do with aerial shackles but it still uses that spell.
You mean it still uses the Aerial Shackles buff? That's normal. You can't just remove buffs.

xvirus666 said:
maybe theres a action on the part of a trigger that can remove the spell or try and find a different way?
I may be missing something stated earlier in the thread, but I don't have the slightest idea of what you're saying...
 
uhhhh nvm... i just made a new ability based off of divine shield, EXACTLY what i wanted... :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I love the Trending Content!
  • The Helper The Helper:
    New News Forum World News
  • The Helper The Helper:
    How often does the Trending Content box refresh?
  • The Helper The Helper:
    Also, in the last template there was a seperation between sticky threads and regular threads in the forum
  • Ghan Ghan:
    Not sure. It's probably part of a cron job.
  • The Helper The Helper:
    Hey Ghan, whatever cron job its part of its not running its been the same for days. If it does not work can we remove it?
  • The Helper The Helper:
    LOL! A tweak job!
  • The Helper The Helper:
    this is the fix I get from that yeah this is hard to control. disabling bots is pretty much necessary as ai and other bots would push really old threads to the top. reduce weight of view count. disable guest view tracking if you really want to push active threads to the top. a bit of tinkering for a few days with the weights and other settings should get you a decent trending widget box.
  • Ghan Ghan:
    I changed the settings a bit.
  • Ghan Ghan:
    Narrowed it to 7 days for the half-life and set views to 0 weight.
  • The Helper The Helper:
    I dont think Trending would work for this forum it would be better to just have the last 5 posts from anywhere
  • Ghan Ghan:
    Probably will have to give it some time to update.
  • Ghan Ghan:
    I'm guessing it is not retroactive.
  • Ghan Ghan:
    Next on the punch list: Update the server to Ubuntu 24.04.
  • The Helper The Helper:
    Mad Lads is new I see it displays original post date
  • The Helper The Helper:
    as long as it changes it is good - it is good now it updated and its new stuff
  • The Helper The Helper:
    One thing I have noticed and I dont know if it is by design but like 1 out of 3 times I come to the site the Anubis screen just hangs open, if I refresh it will go away but sometimes it hangs
  • Ghan Ghan:
    I've seen that as well.
  • The Helper The Helper:
    Wow - the change in the stats are major. I kind of knew it was all bots but wow, to see the effect. Why the social media sites cant do something like this I have no idea.
  • Ghan Ghan:
    Probably inflates their numbers so they look better to advertisers.
  • The Helper The Helper:
    Yeah google does not filter those bots. I remember when Apex was doing Google ads I saw the same IPs in there as I was seeing here - google is totally tracking all those bots as traffic and most google traffic, at least ours, was all bots
  • The Helper The Helper:
    oh wow, i bet i can post x links now and do the webp pics now giggity
  • The Helper The Helper:
    ahh anubis blocks anyone that has javascript turned off
  • The Helper The Helper:
    Robot: HTTP client library - i love the new robot :)

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top