(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Reply
 
LinkBack Thread Tools Display Modes
Old 12-01-2008, 06:00 PM   #1 (permalink)

Lemming3000
 
Join Date: Oct 2008
Posts: 20

Lemming3000 has little to show at this moment (1)


Random trigger order O_o

In my game i want to be able to make some thing happen and maybe next time something differnt to happen and the thing before to happen later O_o

ill put it like this for a test trigger
i want it so that theres two horses pack horse and a armored horse.
i want it to randomly select one of the two horse triggers
so that 1 horse with a randomness of 50/50 of which one it is. O_o i didnt explain that very well i hope you under stand what im trying to get.
Lemming3000 is offline   Reply With Quote
Old 12-01-2008, 06:13 PM   #2 (permalink)
 
leet.firefox's Avatar

Trying to learn JASS
 
Join Date: Nov 2008
Posts: 187

leet.firefox has little to show at this moment (13)leet.firefox has little to show at this moment (13)


Event - Something Happens
Condition - Event You Want Equal to True
Set PercentChance(1) = 1
Set PercentChance(2) = 2
If
PercentChance = 1
Then
Select Armoured Horse
Else
Select Pack Horse

I guess you could use this, I don't know, I'm not at home so I can't check it out.
__________________
Current ProjectA FF ORPGLooing for help!
FF ORPG- Recruiting!
Another Hero Lost-Need Map Transistor
Life Of Adventure - On Hold
Invasion Of Dalaran - On Hold
As Hope is Fading-Working on First Part
leet.firefox is online now   Reply With Quote
Old 12-01-2008, 06:41 PM   #3 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


umm WHAT ?

anyway
what you can make random is: you can pick a random number between numbers you specifed
like you can make game pick a random number between 1 and 5
it works like
Random integer between 1 and 5 (1 and 5 is included as I know but I maybe wrong ofcourse)
Need_O2 is offline   Reply With Quote
Old 12-01-2008, 07:24 PM   #4 (permalink)

Lemming3000
 
Join Date: Oct 2008
Posts: 20

Lemming3000 has little to show at this moment (1)


O_o well i have made a bit of an advancement.
the only probelm is how to i generate the random integer? :(
Lemming3000 is offline   Reply With Quote
Old 12-01-2008, 10:48 PM   #5 (permalink)
 
leet.firefox's Avatar

Trying to learn JASS
 
Join Date: Nov 2008
Posts: 187

leet.firefox has little to show at this moment (13)leet.firefox has little to show at this moment (13)


Set RandomInteger = Random Number between 1 and 5 where RandomInteger is an Integer Variable
__________________
Current ProjectA FF ORPGLooing for help!
FF ORPG- Recruiting!
Another Hero Lost-Need Map Transistor
Life Of Adventure - On Hold
Invasion Of Dalaran - On Hold
As Hope is Fading-Working on First Part
leet.firefox is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trigger - issue order to cast spell? LlamaNamedOsama World Editor Help Zone 4 11-04-2007 04:02 AM
Too many custom abilitys sharing the same Order trigger. Endemion Triggers & Scripts 4 08-20-2005 09:58 PM
How do I trigger if a player order a unit to a region? Jeffiec Map Development 3 03-23-2005 10:49 AM
Trigger help - order issued targeting a point/object Banli Map Development 4 12-17-2004 04:10 PM
Spell Trouble: Order unit to target a RANDOM unit? GreyArchon Triggers & Scripts 10 12-05-2004 11:27 PM

All times are GMT. The time now is 04:38 AM.






Your link here 
Loans | Mortgage | Bankruptcy | Buy WoW Gold | Loans
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle