• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

JASS a better option?

Status
Not open for further replies.
Level 4
Joined
Jun 23, 2011
Messages
70
Hey, I'm working with some pretty hacked-together GUI triggers, and I've come up against something that I REALLY don't feel like going through.

I need to alter 150 (not a typo, one hundred and fifty) actions inside a trigger, changing one of the options from "create a visibility modifier 100 wide" to "create a visibility modifier 500 wide". Is there a find-and-replace option available in JASS or something?
 

Rui

Rui

Level 41
Joined
Jan 7, 2005
Messages
7,550
JASSNewGenPack has one, but you'd have to turn those GUI triggers to JASS, which is an irreversible move. Right now, it might be the seemingly easiest approach, but if you have to change how that trigger works, then you'll have to redo it completely, since you don't know JASS.
 
There's a "Find" feature in the trigger editor but it will not be a "find and replace".

If you aren't comfortable using JASS, this may be the best solution.

Edit: I think Maker has the right idea with the loop. You usually shouldn't have so many actions in a trigger if you do it right.

I second the notion of you posting your WIP so we can get an idea if this is possible.
 
Status
Not open for further replies.
Top