Need H45U People!

  • Thread starter Thread starter 120816
  • Start date Start date
1

120816

Guest
Ok gosu triggerers. I need alot of help. Study this example.

A player unit is next to a shop which sells Apples, Oranges and Lemons. He is only allowed to have one so as soon as he buys an apple or an orange or a lemon. The shop does not sell anymore items to THAT hero but sells the same way to other players.

If you didn't understand that.

A hero is next to a shop which sells various items. He is only allowed to have ONE of those items so as soon as he chooses one the shop doesn't sell him ANYTHING else BUT continue selling the items to other heroes.

HOW TEH FUXXORS DO I DO THIS? It's really hurting me and making me cry because I cant do something as simple as this.

PLEASE SAVE ME BEFORE I COMMIT SUICIDE!
 
I know I shouldn't be double posting but please people! Come on! There's got to be an Einstein out there!
 
Sorry I dont have WE in front of me, but something like this:
Make a An Interger variable. And make it an array of 1.
TRIGGER 1:
Code:
Events:
A unit acuires an Item
Conditions:
Item Equal to: Apple Equal to True
Item Equal to: Orange Equal to True
Item Equal to: Lemon Equal to True
Actions:
Set Variable: Item [1].

TRIGGER 2:
Code:
:Events:
A unit acuires an Item
Conditions:
Item Equal to: Apple Equal to True
Item Equal to: Orange Equal to True
Item Equal to: Lemon Equal to True
Item (variable) Equal to [1]
Actions:
Item - Remove last purcased item from triggering unit.

Something like that, I may post up a more detailed one soon.
Hope that helped,
-Husky
 
Hey thanks for the link Krakka but I'm not going to look at Guinsoo's h4xx0r code[/sarcasm]. You have a big dick, thank you still.

Hey Husky thanks alot, you have the biggest dick here. Can I ask if it works this way.

Events:
A unit acuires an Item
Conditions:
Item Equal to: Apple Equal to True
Item Equal to: Orange Equal to True
Item Equal to: Lemon Equal to True
Actions:
Make Selling Unit - [*]

*not sell to hero?

Does that work?
 
120816 said:
Hey thanks for the link Krakka but I'm not going to look at Guinsoo's h4xx0r code[/sarcasm]. You have a big dick, thank you still.

Hey Husky thanks alot, you have the biggest dick here. Can I ask if it works this way.

Events:
A unit acuires an Item
Conditions:
Item Equal to: Apple Equal to True
Item Equal to: Orange Equal to True
Item Equal to: Lemon Equal to True
Actions:
Make Selling Unit - [*]

*not sell to hero?

Does that work?

Umm, first off, If you don't want to recieve a bad reputation, don't use that kinda language.

To the main:
I don't really understand what you mean, but what I was tryng to say for the trigger is:
(simplified language)

If a unit owned by player 1/2/3 etc. (forgot to add that to the trigger in Events). Gets an item.
That item is an apple, orange or a lemon. So set the variable to 1 (as where it has a maximum of one, so it can no higher).

If a unit (owned by player 1/2 etc.) buys that item again and the variable is 1, he is not allowed to buy that, becuase he's already reached the maximum of which is 1.

Anyway i'll post up a proper trigger soon,
-Husky
 
Okay, here's the trigger (I havn't tested this, this is just to give you ideas).

Code:
Item Purchase
    Events
        Unit - A unit owned by Player 1 (Red) Acquires an item
        Unit - A unit owned by Player 2 (Blue) Acquires an item
    Conditions
        (Item-type of (Last created item)) Equal to Empty Vial
        (Item-type of (Last created item)) Equal to Full Vial
    Actions
        Set Item[0] = 1
        Trigger - Turn off (This trigger)
        Trigger - Turn on Unit already has item <gen>

THE FOLLOWING TRIGGER NEEED TO BE INTITALLY OFF!

Code:
Unit already has item
    Events
        Unit - A unit owned by Player 1 (Red) Acquires an item
        Unit - A unit owned by Player 2 (Blue) Acquires an item
    Conditions
        (Item-type of (Last created item)) Equal to Empty Vial
        (Item-type of (Last created item)) Equal to Full Vial
        Item[0] Equal to 1
    Actions
        Item - Remove (Item being manipulated)

As I said just ideas.
Hope that helped,
-Husky
 
You have a big dick, thank you still.

Hey Husky thanks alot, you have the biggest dick here.

Geesh...keep the bad language to urself thank you...

Some ppl have virgin eyes here...!

Also my first time ever heard some1 use that word in "that" way....

And the triggers aren't very hard...
 
Krakka said:
Also my first time ever heard some1 use that word in "that" way....

Lol, I agree, not the most pleasent compliment someone could recieve...
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New Science News Forum and it starts out with 420 threads :)
  • The Helper The Helper:
    Technical Support forum name changed To Technology News, there is now a Tech, sci/tech and science forums now :)
  • The Helper The Helper:
    Happy Saturday! Hope everyone has a fantastic weekend!
  • Ghan Ghan:
    We are now on Ubuntu 24.04. Had some issues with the style after the OS/PHP upgrade but now resolved.
    +1
  • Ghan Ghan:
    PHP 8.3 now live
    +1

The Helper Discord

Members online

No members online now.

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top