moving triggers/custom units/abilities etc. between maps?

Malkier

New Member
Reaction score
2
Hi. I'm trying to create like a final fantasy rpg type of thing but to start with i created a couple of test maps to see if i could get a couple of things working (limit breaks, random encounters)
now im beginning to work on the actual map and i dont really want to create all those units, skills and triggers from scratch..
so.. what's the best/fastest/easiest way to just get custom data from one map into another?

also, ive seen this action a few times in the forums can someone please explain what it is/means/does?
For each (Integer A) from 1 to 10, do (Actions)

cheers
 
S

Slate.Master

Guest
For the first I think using NewGen will enable this, but ask for more experienced users.
For the seconds, the
Code:
For each (Integer A) from 1 to 10, do (Actions)
is used to do certain actions for a certain ammount of times. The amount of times would be the second number minus the first.
 

Malkier

New Member
Reaction score
2
cool so like for example instead of:
Code:
Set rand = (Random integer number between 1 and 5)
Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to nemyparty
Set rand = (Random integer number between 1 and 5)
Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to nemyparty
Set rand = (Random integer number between 1 and 5)
Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to nemyparty
Set rand = (Random integer number between 1 and 5)
Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to nemyparty
i could have this?
Code:
Set rand = (Random integer number between 4 and 8)
For each (Integer A) from 1 to rand, do (Actions)
    Loop - Actions
        Set rand = (Random integer number between 1 and 5)
        Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit Group - Add (Last created unit) to nemyparty

Unit Group - Pick every unit in nemyparty and do (Actions)
    Loop - Actions
        Unit - Order (Picked unit) to Attack-Move To (Center of arenagood <gen>)
that would be better i think if that works so then it would be not just randomised enemies but randomised number of enemies
 
S

Slate.Master

Guest
Just add the issued order inside the loop

Code:
Set rand = (Random integer number between 4 and 8)
For each (Integer A) from 1 to rand, do (Actions)
    Loop - Actions
        Set rand = (Random integer number between 1 and 5)
        Unit - Create 1 randombaddies[rand] for Player 12 (Brown) at (Random point in arenabad <gen>) facing Default building facing degrees
        Unit - Order (Last created unit) to Attack-Move To (Center of arenagood <gen>)
 

Malkier

New Member
Reaction score
2
yes but i still need them in a unit group for the trigger to end the random battle dont i?
Code:
battlefinish
    Events
        Unit - A unit Dies
    Conditions
        ((Triggering unit) is in nemyparty) Equal to True
    Actions
        Unit Group - Remove (Triggering unit) from nemyparty
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (nemyparty is empty) Equal to True
            Then - Actions
then it does the fun stuff to take the party out of the battle ^_^
anyway getting a bit off-topic.. so a good way to move custom data is with "NewGen"? where might i find this?
 

Romek

Super Moderator
Reaction score
963
You can move custom data with Newgen?

I think you'd either need to import object data/trigger data from the other map, or simple Copy and Paste :D

You can have many maps opened at once, and switch which you're using from 'Window'.
 

Malkier

New Member
Reaction score
2
>I think you'd either need to import object data/trigger data from the other map, or simple Copy and Paste

how do i do that?
 

joaoac

Active Member
Reaction score
11
just have as many maps you need opened.
alternate between them in the window menu (like any microsoft programs).

when you are at your "mother-map" simply copy from the "mother" to others.
yeah, it's Ctrl + C

works for triggers, units, terrain. I think it works for all.

=)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top