What about hints?

  • Thread starter Thread starter MrFustrated
  • Start date Start date
M

MrFustrated

Guest
:banghead: I just dont know how? :banghead:
First off I am new! Yey!
But im going to try not to be as big a pain as I am proving to be :D

:confused: I have a question, :confused:

If you ever played a tower wars where you get a hint pop up randomly every 10 secs (you may think this is enoying but it would be good to put on a Game,)
well can you tell me these things,
1. How to store all the hints.
2. How to make the triggers randomly select a hint,
3. How to display these hints to the users (I allready know how to make text appear, It doesnt take rocket science)

Thank you for your help, and I would like to say that I am a big user of the Warcraft Tutorial Site. :)
Thanks again!
 
You need a string array hints and an integer variable hintsn, and an integer variable x

At map initialization:
-
set hints[1]= blah blah blah
set hints[2]= blah blah blah
""
set hints[30]= blah blah blah
set hintsn=30


When you want to show a hint:
Code:
if  conditions:
  (hintsn) greater than 0
then do actions
     set x=Random Integer number from 1 to hintsn
    Show - Text to all players Concatenate strings ( HINT - ) + (hints[x])
    set hints[x] = hints[hintsn]
    set hintsn= hintsn -1
 
Vexorian said:
You need a string array hints and an integer variable hintsn, and an integer variable x

At map initialization:
-
set hints[1]= blah blah blah
set hints[2]= blah blah blah
""
set hints[30]= blah blah blah
set hintsn=30

He is right there, but wrong here:

Vexorian said:
... When you want to show a hint:
Code:
if  conditions:
  (hintsn) greater than 0
then do actions
     set x=Random Integer number from 1 to hintsn
    Show - Text to all players Concatenate strings ( HINT - ) + (hints[x])
    set hints[x] = hints[hintsn]
    set hintsn= hintsn -1

Do this instead (he had most of it right though):

(( N = Any Number ))

Code:
Trigger 1
Events:
Time - Every (time here) seconds of game time

Condtions:
-None-

Actions:
Set Hints[n] = Hints[n+1]
If Hints[n] = Hints[30] then do Set Hints[n] = Hints[1] else do nothing
Game - Display to (All Players) the text: Hints[n]
 
I think Vexorian is right actually because the original poster wanted it to "randomly" select a hint, not go in order from 1 to 30.
 
well if it went randomly you could end up with showing the same hint twice in arow. So hear what i have to say, Instead of labing them Hint 1: Text so it with just the 'Text' part so they know its not going in order but they get all the info before the game ends and so it wount show twice.
 
Yeah, I guess, but the chance of it showing the same tip twice is very low and even if it was, its not like someone would think of it as a "bad" map because it did that.

Later on he could just add some type of boolean to check if it had been shown or not.
 
yes you could something like this acualy:

Code:
Events:
Time - Every 10 seconds of game time

Conditions:
-None-

Actions:
Set Hints = Hints[random number between 1-30]
If Hints[n] = Hints_check then do Run This trigger ignoreing conditions else do skip remaining actions
Game - Display to (All Players) the text: Hints[n]
Set Hints_check = n
 
Yep, exactly. Except that it should be more like 1 tip every minute instead of every 10 seconds.
 
=MrFustrated]
If you ever played a tower wars where you get a hint pop up randomly every 10 secs (you may think this is enoying but it would be good to put on a Game,)

He said 10 seconds :D
 
Ah sorry. But seriously 10 seconds... thats like how long the tip is usually shown on screen. You would have to be constantly reading tips or something?
 
Yah thats true
 
People get annoyed with my minutely tips... Maybe you can add a trigger that turns tips off for the person. Shouldn't be too hard with just a single boolean varaible (array if you want it to stop showing for an exact amount of people). If you don't know how I'll post a trigger.
 
So... something like this?

Code:
Trigger 1

Events:
Map Installation

Conditions:
-None-

Actions:
Player Group - Pick every player in (All Players) and (Add (Picked Player) to (Hint_Show))

Then this

Code:
Trigger 2

Events:
Player - Player 1 types a chat message containing -no hints as an axact match
Player - Player 2 types a chat message containing -no hints as an axact match
Player - Player 3 types a chat message containing -no hints as an axact match
(and so for all players)


Conditions:
-None-

Actions:
Player Group - Remove (Triggering Player) from (Hint_Show)


And else do this


Code:
Trigger 3
Events:
Time - Every 10 seconds of game time

Conditions:
-None-

Actions:
Set Hints = Hints[random number between 1-30]
If Hints[n] = Hints_check then do Run This trigger ignoreing conditions else do skip remaining actions
Game - Display to (Player Group(Hint_Show)) the text: Hints[n]
Set Hints_check = n
 
Yeah, that would work.
I was thinking something like

Player types -no tips
set ShowTipsToThisPlayer[player number of triggering player] = false

then just add in conditions for the tips would be

For each integer A 1 to 10 do actions
if ShowTipsToThisPlayer[Integer A] equal to true then game display text msg "TIP!!!"
 
No offence, but my way is easier and faster to do than yours.
 
Damn, you're right lol.

I just realized you're the elite dude from wc3campaigns who made the awesome map optimizer I use, the temporary patch for WEU/UMSWE, a bunch of jass trigger scripts, other programs, countless custom abilities, everything!

Player11: yeah your way is easier and faster. My way is just what popped into my head.
 
:D Hold on let me think :rolleyes: .... Nope.... lol :D

But my last version of the hint thing includes disabling it for the players who dont want it.
 
Demonfaze said:
... I just realized you're the elite dude from wc3campaigns who made the awesome map optimizer I use, the temporary patch for WEU/UMSWE, a bunch of jass trigger scripts, other programs, countless custom abilities, everything! ...

Err is he some1 im supposed to know??? Yes i use the map optimizer, but the other stuff, even though i do use WEU
 
If a program is made by Vexorian, all other programs of its genre seem like crap, lol.

If you've ever been to wc3sear.ch/wc3campaigns.com (joined sites) and looked at all of the best abilties Vexorian's name would pop up quite a bit. He even does requests! :cool:
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 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!

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top