- Joined
- May 23, 2008
- Messages
- 628
- Reaction score
- 4
Hallo thar everyone

I'm not sure if this was released already but... w/e...
Today I will be teaching you about editing portals through xml files
Today I will be teaching you about editing portals through xml files

This guide will conatain how to edit portals to direct to a map, how to block portals, and how to make the default respawn map

Now... Let's get started!

How to edit portals to direct to another map
I will be using FM xml as an example...
First of all... ctrl + f portal
Now... Find the portal you want to edit and simply replace the map id with the map id you want it to direct to...
For example... the FM 1 portal is this block :
Code:
<imgdir name="3">
<string name="pn" value="in01"/>
<int name="pt" value="1"/>
<int name="x" value="520"/>
<int name="y" value="1"/>
<int name="tm" value="910000001"/>
<string name="tn" value="out00"/>
<string name="script" value=""/>
</imgdir>
I would do this (Edited part in bold)
Code:
<imgdir name="3">
<string name="pn" value="in01"/>
<int name="pt" value="1"/>
<int name="x" value="520"/>
<int name="y" value="1"/>
<int name="tm" value="[B]910000002[/B]"/>
<string name="tn" value="out00"/>
<string name="script" value=""/>
</imgdir>
How to block portals
Now... This part is EXTREMELY easy...
Find the portal you want to block and erase the whole block
For instance...
I want to block fm 1 portal... So I would have to remove this block
Code:
<imgdir name="3">
<string name="pn" value="in01"/>
<int name="pt" value="1"/>
<int name="x" value="520"/>
<int name="y" value="1"/>
<int name="tm" value="910000001"/>
<string name="tn" value="out00"/>
<string name="script" value=""/>
</imgdir>
Yay your finished!
How to change the respawn map and maps when you CC
This is as simple as it gets

To change the map you want to respawn to when you die... Look for this line
Code:
<int name="returnMap" value="910000000"/>
Now... When you want to make a person go to a map when you CC, simply find this line
Code:
<int name="forcedReturn" value="999999999"/>

Yay finished... This is probably my final release because Ragezone isn't as great as it was before....
Credits to me!