Spells in Regions

yamifowl

Member
Reaction score
2
Please people..
I want to make this trigger...
Can anyone help me?

"Event - Periodic time 400 seconds...
Condition - None
Action - A spell is cast on a random point in a region..."

Thanks!!
 

Zeromatter

New Member
Reaction score
20
Depends on the base spell.

If it's based off of flamestrike,

Event: every 400 seconds
Conditions
Actions: set location=random piont in region X
create 1 dummycaster at location, facing default building
give Flamestrike to last created unit
order last created unit ro human bloodmage-flamestrike location
create a 3 second experiation timer for last created unit
 

Evan1993

Ultra Cool Member
Reaction score
30
I cant quite tell what you want. Do you mean when a unit casts a spell when its in the region or a unit casts a spell on the region?

Edit: nm, I think I know what you want now...
 

yamifowl

Member
Reaction score
2
The base idea it's to be like "Natural Disasters"...
So, once in a while, I want a blizzard here, a earthquake there...
You got it???
 

Sim

Forum Administrator
Staff member
Reaction score
534
Code:
Disasters
    Events
        Time - Every 400.00 seconds of game-time
    Conditions
    Actions
        Set temp_point = (Random point in REGION <gen>)
        Set random_integer = (Random integer number between 1 and 3)
        Unit - Create 1 Dummy at temp_point for Neutral Hostile facing default building facing degrees
        Unit - Add a 30.00 seconds Generic expiration timer to (Last created unit)
        If (All conditions are true) then do (Then actions) else do (Else actions)
            If - Conditions
                random_integer Equal to 1
            Then - Actions
                Unit - Add Blizzard to (Last created unit)
                Unit - Order (Last created unit) to Human Archmage - Blizzard temp_point
            Else - Actions
                If (All conditions are true) then do (Then actions) else do (Else actions)
                    If - Conditions
                        random_integer Equal to 2
                    Then - Actions
                        Unit - Add Earthquake to (Last created unit)
                        Unit - Order (Last created unit) to Orc Farseer - Earthquake temp_point
                    Else - Actions
                        Unit - Add Tornado to (Last created unit)
                        Unit - Order (Last created unit) to Neutral Naga - Tornado temp_point
        Custom script:   call RemoveLocation(udg_temp_point)

Should look like this.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top