Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Can WB within scripting do things in random locations? I konw waypoints and what not can be placed to have events take place, I've done that obviuosly, but I want an event to take place at a random place on the map. If not, and I fear it does not, then can I place say, 100 waypoints, and have it randomely select one?
Turtling is not a strategy, its a weakness
Sponsor
fleetatks
17 years ago
There is a set random timer expiration script, using that you can have something like 5 scripts all go off at random and the first to go off triggers a script that makes an event happen and disable the other scripts. To repeat it, include the same "set timers to expire randomly" within each event script action.
Email me if you ever need help (edited signature November 6th, 2014)
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
Alright, let me make I follow you here. I would have multiple scripts or however many locations I wanted an event to occur. I would set all of them to expire on thier own individual random timers. As soon as one expires, I could have the others deactivate, and start thier timers over. Then then next round a different one's timer would expire first and so the event would take place somewhere else. Is this what you mean? I could simplify that and just have them each reset thier own timer as soon as it expires and work independently of each other to garuantee that each location would get hit. I will try this, thanks Fleetatks.
Turtling is not a strategy, its a weakness
Drummin
17 years ago

I could simplify that and just have them each reset thier own timer as soon as it expires and work independently of each other to garuantee that each location would get hit.

I think you will find that Fleetatks is right as far as pinging back and forth between scripts.

Here's a "Money Gifting" script which has a start delay and straight timers to "activate" each of the money scripts. You could change the "ping" timers to random and change the Action to do as you wish. You could then just make copies for each waypoint location.

Download Attachment: UserPostedImage HardCash.zip 
1.21 KB
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
17 years ago
I suppose I have a few ways to do it. This is somewhat new to me, I deal mostly with making the AI better, which doesn't involve having things spawn or events taking place... more so with players reacting to situations to best mimic human intellegence, but I'm trying to work on a weather effect and I want to make sure I can do it before I start working on taking data out of the TPoHTW Mod for this.
Turtling is not a strategy, its a weakness